Sha256: dc9d8a7edd97e464aee462dca1684dd7285f3720291517792c2f45cecd6f55c0
Contents?: true
Size: 477 Bytes
Versions: 4
Compression:
Stored size: 477 Bytes
Contents
require 'minitest_helper' class TestGeneral < TestInterpreterBase def setup end # TODO: opposite def assert_iq_equal(output, input) assert_equal(output, Hilbert::Iq.execute(input)) end def test_general assert_iq_equal('2x', '2x') assert_iq_equal('2x', 'x + x') # assert_iq_equal('xy', 'xy') assert_iq_equal('x ^ y', 'x ^ y') assert_iq_equal('2sin( x )', 'sin(x) + sin(x)') assert_iq_equal('log( x ) ^ 2', 'log(x) * log(x)') end end
Version data entries
4 entries across 4 versions & 1 rubygems