Sha256: f802006f32fd3ded48baeb67c04be9ac6f3eeaee2ef38f39349c50302b7dfdc3
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
require_relative './test_helper' class TestSymbol < Minitest::Test def test_construct_list? assert :nil.construct_list? refute :language.construct_list? end def test_to_array assert_equal [], :nil.to_array assert_equal :language, :language.to_array end def test_lisp_eval environment = Environment.new environment.define(:language, 'ruby') environment.define(:number, 1) assert_equal 'ruby', :language.lisp_eval(environment, nil) assert_equal 1, :number.lisp_eval(environment, nil) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forsta-0.0.1 | test/symbol_test.rb |