mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b4b3180bfa
commit
374fac7482
1 changed files with 3 additions and 0 deletions
|
@ -17,10 +17,13 @@ class TestRubyLiteral < Test::Unit::TestCase
|
|||
assert_instance_of Fixnum, 1_2_3_4
|
||||
assert_equal '18', 0x12.inspect
|
||||
assert_instance_of Fixnum, 0x12
|
||||
assert_raise(SyntaxError) { eval("0x") }
|
||||
assert_equal '15', 0o17.inspect
|
||||
assert_instance_of Fixnum, 0o17
|
||||
assert_raise(SyntaxError) { eval("0o") }
|
||||
assert_equal '5', 0b101.inspect
|
||||
assert_instance_of Fixnum, 0b101
|
||||
assert_raise(SyntaxError) { eval("0b") }
|
||||
assert_equal '123456789012345678901234567890', 123456789012345678901234567890.inspect
|
||||
assert_instance_of Bignum, 123456789012345678901234567890
|
||||
assert_instance_of Float, 1.3
|
||||
|
|
Loading…
Reference in a new issue