mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_*.rb: assert_same, assert_match, and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d7c5b0518a
commit
a7357c1965
10 changed files with 29 additions and 29 deletions
|
@ -32,14 +32,11 @@ class TestVariable < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_variable
|
||||
assert($$.instance_of?(Fixnum))
|
||||
|
||||
assert_instance_of(Fixnum, $$)
|
||||
|
||||
# read-only variable
|
||||
begin
|
||||
assert_raises(NameError) do
|
||||
$$ = 5
|
||||
assert false
|
||||
rescue NameError
|
||||
assert true
|
||||
end
|
||||
|
||||
foobar = "foobar"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue