Sha256: cefe60c1dd46fe5dd1a60aafc187f9dc2c66ec29204952689c8288d29fdba8bc
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
require 'minitest_helper' class TestLimit < TestInterpreterBase def setup end def assert_iq_equal(output, input) assert_equal(Qlang::Iq.execute(input), output) end def test_general assert_iq_equal( 'oo', 'lim[x->0] 1/x' ) assert_iq_equal( '10.0', 'lim[x->10] x' ) # assert_iq_equal( # '2.7182682371744895', # 'lim[x->oo] (1 + 1/x)^x' # ) assert_iq_equal( 'oo', 'lim[x->oo] x' ) assert_iq_equal( '0.0', 'lim[x->0] x' ) end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
hilbert-0.0.2700000 | test/interpreter/test_limit.rb |
qlang-0.0.27182124 | test/interpreter/test_limit.rb |