Sha256: 1d2818e9787e96f7a8f066de0f805c6cc226658d1f0c19693fb92e9d3507e099

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 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

11 entries across 11 versions & 2 rubygems

Version Path
hilbert-0.0.2700420 test/interpreter/test_vector.rb
hilbert-0.0.2700410 test/interpreter/test_vector.rb
hilbert-0.0.2700400 test/interpreter/test_vector.rb
hilbert-0.0.2700320 test/interpreter/test_vector.rb
hilbert-0.0.2700300 test/interpreter/test_vector.rb
hilbert-0.0.2700210 test/interpreter/test_vector.rb
hilbert-0.0.2700110 test/interpreter/test_vector.rb
hilbert-0.0.2700100 test/interpreter/test_vector.rb
hilbert-0.0.2700001 test/interpreter/test_vector.rb
hilbert-0.0.2700000 test/interpreter/test_vector.rb
qlang-0.0.27182124 test/interpreter/test_vector.rb