summaryrefslogtreecommitdiff
path: root/sample/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb6
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)