diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-10 06:25:40 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-10 06:25:40 +0000 |
| commit | f8eb2ce31e4a515e46530a3f480f250651d0c67b (patch) | |
| tree | 694631f7fd4fcb019e94339af134b584e6a2c552 /test/ruby | |
| parent | 781c483c7c5ee2ad71a8e72200352846589d03cd (diff) | |
| download | ruby-f8eb2ce31e4a515e46530a3f480f250651d0c67b.tar.gz ruby-f8eb2ce31e4a515e46530a3f480f250651d0c67b.tar.xz ruby-f8eb2ce31e4a515e46530a3f480f250651d0c67b.zip | |
* range.c: represent initialized state using EXCL instead of FL_USER3.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_range.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb index 030aeb977..847e261f9 100644 --- a/test/ruby/test_range.rb +++ b/test/ruby/test_range.rb @@ -59,4 +59,9 @@ class TestRange < Test::Unit::TestCase assert_equal(0, (0..0).max) assert_equal(nil, (0...0).max) end + + def test_initialize_twice + r = eval("1..2") + assert_raise(NameError) { r.instance_eval { initialize 3, 4 } } + end end |
