mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Merge branch 'master' of git://github.com/Shopify/liquid
* 'master' of git://github.com/Shopify/liquid: * Seperated 'Howto' into 'How to'. * Added periods to the second list as the first item has them. I guess I'm anally retentive like that. :) Fix conditions using negative number comparisons
This commit is contained in:
@@ -18,6 +18,11 @@ class ConditionTest < Test::Unit::TestCase
|
||||
assert_evalutes_true '2', '>=', '1'
|
||||
assert_evalutes_true '1', '<=', '2'
|
||||
assert_evalutes_true '1', '<=', '1'
|
||||
# negative numbers
|
||||
assert_evalutes_true '1', '>', '-1'
|
||||
assert_evalutes_true '-1', '<', '1'
|
||||
assert_evalutes_true '1.0', '>', '-1.0'
|
||||
assert_evalutes_true '-1.0', '<', '1.0'
|
||||
end
|
||||
|
||||
def test_default_operators_evalute_false
|
||||
|
||||
Reference in New Issue
Block a user