Sha256: c5f6442acbb586352aa17eb39f5b56249de990ee163fe67addf5596d0ec97a40

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

##
# Bootstrap test for literals

assert('BS Literal 1') do
  assert_true true
end

assert('BS Literal 2') do
  assert_equal TrueClass, true.class
end

assert('BS Literal 3') do
  assert_false false
end

assert('BS Literal 4') do
  assert_equal FalseClass, false.class
end

assert('BS Literal 5') do
  assert_equal 'nil', nil.inspect
end

assert('BS Literal 6') do
  assert_equal NilClass, nil.class
end

assert('BS Literal 7') do
  assert_equal Symbol, :sym.class
end

assert('BS Literal 8') do
  assert_equal 1234, 1234
end

assert('BS Literal 9') do
  assert_equal Integer, 1234.class
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/mruby/test/t/bs_literal.rb
script_core-0.3.0 ext/enterprise_script_service/mruby/test/t/bs_literal.rb