Sha256: 7263eacc153fa154b4d07c80617f4ea73f08cbac7bac4936f75911745fdca5d1

Contents?: true

Size: 542 Bytes

Versions: 13

Compression:

Stored size: 542 Bytes

Contents

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.3 test/test_value.rb
rucy-0.2.1 test/test_value.rb
rucy-0.2 test/test_value.rb
rucy-0.1.44 test/test_value.rb
rucy-0.1.43 test/test_value.rb
rucy-0.1.42 test/test_value.rb
rucy-0.1.41 test/test_value.rb
rucy-0.1.40 test/test_value.rb
rucy-0.1.39 test/test_value.rb
rucy-0.1.38 test/test_value.rb
rucy-0.1.37 test/test_value.rb
rucy-0.1.36 test/test_value.rb
rucy-0.1.35 test/test_value.rb