diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-01 09:42:38 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-01 09:42:38 +0000 |
| commit | 817a62de81d75c73cceb453301ef27b094f17c14 (patch) | |
| tree | 65e06d76c544a8d80296d686bf88ec3af41fdc50 /sample/test.rb | |
| parent | 5cffff58445b5aec50bd4abe2198bf84b8dd68c4 (diff) | |
| download | ruby-817a62de81d75c73cceb453301ef27b094f17c14.tar.gz ruby-817a62de81d75c73cceb453301ef27b094f17c14.tar.xz ruby-817a62de81d75c73cceb453301ef27b094f17c14.zip | |
2000-05-01
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
| -rw-r--r-- | sample/test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sample/test.rb b/sample/test.rb index 2e9d3e08e..9d77647cf 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -694,7 +694,11 @@ $x.each_byte {|i| } ok(!$bad) -check "asignment" +s = "a string" +s[0..s.size]="another string" +ok(s == "another string") + +check "assignment" a = nil ok(defined?(a)) ok(a == nil) |
