@@ -0,0 +1,1434 @@
+package com.hubspot.jinjava.lib.exptest;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport com.google.common.collect.ImmutableMap;%0Aimport com.hubspot.jinjava.Jinjava;%0Aimport com.hubspot.jinjava.objects.date.PyishDate;%0Aimport java.time.Instant;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class ComparisonExpTestsTest %7B%0A  private Jinjava jinjava;%0A%0A  @Before%0A  public void setup() %7B%0A    jinjava = new Jinjava();%0A  %7D%0A%0A  @Test%0A  public void itComparesNumbers() %7B%0A    assertThat(jinjava.render(%22%7B%7B 4 is lt 5 %7D%7D%22, new HashMap%3C%3E())).isEqualTo(%22true%22);%0A    assertThat(jinjava.render(%22%7B%7B 4.1 is lt 5 %7D%7D%22, new HashMap%3C%3E())).isEqualTo(%22true%22);%0A  %7D%0A%0A  @Test%0A  public void itComparesStringsLexicographically() %7B%0A    assertThat(jinjava.render(%22%7B%7B 'aa' is lt 'aa' %7D%7D%22, new HashMap%3C%3E()))%0A      .isEqualTo(%22false%22);%0A    assertThat(jinjava.render(%22%7B%7B 'aa' is lt 'aaa' %7D%7D%22, new HashMap%3C%3E()))%0A      .isEqualTo(%22true%22);%0A    assertThat(jinjava.render(%22%7B%7B 'aa' is lt 'b' %7D%7D%22, new HashMap%3C%3E())).isEqualTo(%22true%22);%0A  %7D%0A%0A  @Test%0A  public void itComparesDates() %7B%0A    Map%3CString, Object%3E vars = ImmutableMap.of(%0A      %22now%22,%0A      PyishDate.from(Instant.now()),%0A      %22then%22,%0A      new PyishDate(1490171923745L)%0A    );%0A    assertThat(jinjava.render(%22%7B%7B now is lt then%7D%7D%22, vars)).isEqualTo(%22true%22);%0A    assertThat(jinjava.render(%22%7B%7B then is lt now%7D%7D%22, vars)).isEqualTo(%22false%22);%0A  %7D%0A%7D%0A

Test comparison exp tests