diff options
Diffstat (limited to 'sample')
-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 2e9d3e08ee..9d77647cf7 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) |