Sha256: 45ba4cf4031f9386c47f4a357bffac07f0db3fbdd0749ecdaf909d6321aaa65c
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 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 & 1 rubygems
Version | Path |
---|---|
qlang-0.0.27182123 | test/interpreter/test_limit.rb |
qlang-0.0.27182122 | test/interpreter/test_limit.rb |