[macruby-changes] [4876] MacRuby/trunk/spec/frozen/language/precedence_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Nov 3 18:07:35 PDT 2010
Revision: 4876
http://trac.macosforge.org/projects/ruby/changeset/4876
Author: lsansonetti at apple.com
Date: 2010-11-03 18:07:33 -0700 (Wed, 03 Nov 2010)
Log Message:
-----------
comment a spec as rubyspec master
Modified Paths:
--------------
MacRuby/trunk/spec/frozen/language/precedence_spec.rb
Modified: MacRuby/trunk/spec/frozen/language/precedence_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/language/precedence_spec.rb 2010-11-04 01:07:10 UTC (rev 4875)
+++ MacRuby/trunk/spec/frozen/language/precedence_spec.rb 2010-11-04 01:07:33 UTC (rev 4876)
@@ -330,10 +330,15 @@
lambda { eval("1...2...3") }.should raise_error(SyntaxError)
end
- it ".. ... have higher precedence than ? :" do
- (1..2 ? 3 : 4).should == 3
- (1...2 ? 3 : 4).should == 3
- end
+# XXX: this is commented now due to a bug in compiler, which cannot
+# distinguish between range and flip-flop operator so far. zenspider is
+# currently working on a new lexer, which will be able to do that.
+# As soon as it's done, these piece should be reenabled.
+#
+# it ".. ... have higher precedence than ? :" do
+# (1..2 ? 3 : 4).should == 3
+# (1...2 ? 3 : 4).should == 3
+# end
it "? : is right-associative" do
(true ? 2 : 3 ? 4 : 5).should == 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101103/76d93583/attachment.html>
More information about the macruby-changes
mailing list