Modified: MacRuby/trunk/numeric.c (3182 => 3183)
--- MacRuby/trunk/numeric.c 2010-01-04 17:33:04 UTC (rev 3182)
+++ MacRuby/trunk/numeric.c 2010-01-04 19:01:13 UTC (rev 3183)
@@ -2050,7 +2050,7 @@
* Document-class: Fixnum
*
* A <code>Fixnum</code> holds <code>Integer</code> values that can be
- * represented in a native machine word (minus 1 bit). If any operation
+ * represented in a native machine word (minus 2 bits). If any operation
* on a <code>Fixnum</code> exceeds this range, the value is
* automatically converted to a <code>Bignum</code>.
*
Modified: MacRuby/trunk/test_vm/assign.rb (3182 => 3183)
--- MacRuby/trunk/test_vm/assign.rb 2010-01-04 17:33:04 UTC (rev 3182)
+++ MacRuby/trunk/test_vm/assign.rb 2010-01-04 19:01:13 UTC (rev 3183)
@@ -11,7 +11,7 @@
assert '42', "a = [30, 10, *2]; x,y,z = a; p x+y+z"
assert '42', "def foo=(x); @x=x; end; x,self.foo = 1,41; p @x+x"
-assert '42', "def []=(x,y); @x=x+y; end; x,self[40] = 1,1; p @x+x"
+assert '42', "def self.[]=(x,y); @x=x+y; end; x,self[40] = 1,1; p @x+x"
assert '[1, 2, 3]', "a=[1,2,3]; x=*a; p x"
assert '[1, 2, 3]', "a=[2,3]; x=1,*a; p x"
Modified: MacRuby/trunk/test_vm/dispatch.rb (3182 => 3183)
--- MacRuby/trunk/test_vm/dispatch.rb 2010-01-04 17:33:04 UTC (rev 3182)
+++ MacRuby/trunk/test_vm/dispatch.rb 2010-01-04 19:01:13 UTC (rev 3183)
@@ -13,6 +13,7 @@
assert "42", "def foo(x, y, z=123); x+y+z; end; p foo(20, 20, 2)"
assert "42", "def foo(x, y=20, z=2); x+y+z; end; p foo(20)"
assert "42", "def foo(x, y=123, z=2); x+y+z; end; p foo(30, 10)"
+assert "42", "def foo; 42; end; p self.foo"
assert "126", "def foo(a=b=c=42); a+b+c; end; p foo"
assert "[42, nil]", "def f(a=X::x=b=1) p [a, b] end; f(42)"