comparison.test 285B

123456789101112131415
  1. --TEST--
  2. Twig supports comparison operators (==, !=, <, >, >=, <=)
  3. --TEMPLATE--
  4. {{ 1 > 2 }}/{{ 1 > 1 }}/{{ 1 >= 2 }}/{{ 1 >= 1 }}
  5. {{ 1 < 2 }}/{{ 1 < 1 }}/{{ 1 <= 2 }}/{{ 1 <= 1 }}
  6. {{ 1 == 1 }}/{{ 1 == 2 }}
  7. {{ 1 != 1 }}/{{ 1 != 2 }}
  8. --DATA--
  9. return array()
  10. --EXPECT--
  11. ///1
  12. 1//1/1
  13. 1/
  14. /1