Sha256: 1ebaea7737c825b1e00cddbdcce1ce669d853f63fcdf3e2fde0390eb1cd7641c

Contents?: true

Size: 408 Bytes

Versions: 6

Compression:

Stored size: 408 Bytes

Contents

require 'minitest_helper'

class TestVector < TestInterpreterBase
  def setup

  end

  def test_integer
    assert_iq_equal(
      '(1 2 3)',
      '(1 2 3)'
    )

    assert_iq_equal(
      '(1 2 3) + (1 2 3)',
      '(2 4 6)'
    )

    assert_iq_equal(
      '(1  2  3 )  +  ( 1 2 3 )',
      '(2 4 6)'
    )

    assert_iq_equal(
      '(1 2 3) - (1 2 3) - (1 2 3)',
      '(-1 -2 -3)'
    )
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
qlang-0.0.27182123 test/interpreter/test_vector.rb
qlang-0.0.27182122 test/interpreter/test_vector.rb
qlang-0.0.27182121 test/interpreter/test_vector.rb
qlang-0.0.27182120 test/interpreter/test_vector.rb
qlang-0.0.27182110 test/interpreter/test_vector.rb
qlang-0.0.27182100 test/interpreter/test_vector.rb