Sha256: 5e80a3653c23cf142d3ba7b46e98f99d0b60c4ca662de41922277fb7c84fad43
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
require_relative './test_helper' class TestArray < Minitest::Test def setup @array = [1, 2] end def test_to_construct assert_instance_of Construct, @array.to_construct assert_equal 1, @array.to_construct.car assert_equal 2, @array.to_construct.cdr.car assert_equal :nil, @array.to_construct.cdr.cdr # requires implementation of == for Construct # assert_equal Construct.new(1, Construct.new(2, :nil)), @array.to_construct end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forsta-0.0.1 | test/array_test.rb |