Skip to content

Commit

Permalink
Fix Flaky Test - SetSectionTest#testLiterals
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitbadve committed Oct 10, 2024
1 parent 691dd46 commit c9ee926
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ public void testLet() {
@Test
public void testLiterals() {
Engine engine = Engine.builder().addDefaults().addValueResolver(new ReflectionValueResolver()).build();
assertEquals("1::4::Andy::false",
engine.parse(
"{#let foo=1 bar='qute' baz=name.or('Andy') alpha=name.ifTruthy('true').or('false')}"
+ "{#for i in foo}{i_count}{/for}::{bar.length}::{baz}::{alpha}"
+ "{/let}")
.render());
engine.parse(
"{#let foo=1 bar='qute' baz=name.or('Andy') alpha=name.ifTruthy('true').or('false')}"
+ "{#for i in foo}{i_count}{/for}::{bar.length}::{baz}::{alpha}"
+ "{/let}")
.instance().renderAsync().thenAccept(actual -> assertEquals("1::4::Andy::false", actual));
}

@Test
Expand Down

0 comments on commit c9ee926

Please sign in to comment.