Sha256: 20426e46139caa42ac605c7471a290fd972e59c81aa98da163c3fcca4281a31a

Contents?: true

Size: 568 Bytes

Versions: 13

Compression:

Stored size: 568 Bytes

Contents

# -*- coding: utf-8 -*-


require_relative 'helper'


class TestFunction < Test::Unit::TestCase

  include Rucy::Tester

  def test_to_value()
    assert_equal true, true_to_value
    assert_equal false, false_to_value
    assert_equal nil, null_to_value
    assert_equal nil, nil_value
    assert_equal [1], array_value(1)
    assert_equal [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], array_value(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    assert_raise(ArgumentError) {array_value}
    assert_raise(ArgumentError) {array_value 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
  end

end# TestFunction

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rucy-0.1.34 test/test_value.rb
rucy-0.1.33 test/test_value.rb
rucy-0.1.32 test/test_value.rb
rucy-0.1.31 test/test_value.rb
rucy-0.1.30 test/test_value.rb
rucy-0.1.29 test/test_value.rb
rucy-0.1.28 test/test_value.rb
rucy-0.1.27 test/test_value.rb
rucy-0.1.26 test/test_value.rb
rucy-0.1.25 test/test_value.rb
rucy-0.1.24 test/test_value.rb
rucy-0.1.23 test/test_value.rb
rucy-0.1.22 test/test_value.rb