source: EcnlProtoTool/trunk/mruby-1.2.0/test/t/bs_literal.rb@ 321

Last change on this file since 321 was 321, checked in by coas-nagasima, 7 years ago

文字コードを設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby;charset=UTF-8
File size: 591 bytes
Line 
1##
2# Bootstrap test for literals
3
4assert('BS Literal 1') do
5 assert_true true
6end
7
8assert('BS Literal 2') do
9 assert_equal TrueClass, true.class
10end
11
12assert('BS Literal 3') do
13 assert_false false
14end
15
16assert('BS Literal 4') do
17 assert_equal FalseClass, false.class
18end
19
20assert('BS Literal 5') do
21 assert_equal 'nil', nil.inspect
22end
23
24assert('BS Literal 6') do
25 assert_equal NilClass, nil.class
26end
27
28assert('BS Literal 7') do
29 assert_equal Symbol, :sym.class
30end
31
32assert('BS Literal 8') do
33 assert_equal 1234, 1234
34end
35
36assert('BS Literal 9') do
37 assert_equal Fixnum, 1234.class
38end
Note: See TracBrowser for help on using the repository browser.