test/interpreter/test_limit.rb in hilbert-0.0.2700100 vs test/interpreter/test_limit.rb in hilbert-0.0.2700110
- old
+ new
@@ -3,11 +3,11 @@
class TestLimit < TestInterpreterBase
def setup
end
def assert_iq_equal(output, input)
- assert_equal(Hilbert::Iq.execute(input), output)
+ assert_equal(output, Hilbert::Iq.execute(input))
end
def test_general
assert_iq_equal(
'oo',
@@ -30,8 +30,13 @@
)
assert_iq_equal(
'0.0',
'lim[x->0] x'
+ )
+
+ assert_iq_equal(
+ 'oo',
+ 'lim[x->0] 1/x'
)
end
end