[macruby-changes] [3231] MacRuby/trunk/test_vm/conditional.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sun Jan 10 12:53:20 PST 2010
Revision: 3231
http://trac.macosforge.org/projects/ruby/changeset/3231
Author: eloy.de.enige at gmail.com
Date: 2010-01-10 12:53:19 -0800 (Sun, 10 Jan 2010)
Log Message:
-----------
Added a test_vm test for the flip-flop operator.
Modified Paths:
--------------
MacRuby/trunk/test_vm/conditional.rb
Modified: MacRuby/trunk/test_vm/conditional.rb
===================================================================
--- MacRuby/trunk/test_vm/conditional.rb 2010-01-10 20:53:10 UTC (rev 3230)
+++ MacRuby/trunk/test_vm/conditional.rb 2010-01-10 20:53:19 UTC (rev 3231)
@@ -50,3 +50,5 @@
assert 'false', "def foo; false; end; def bar; p :nok; end; x = (foo && bar); p x"
assert ":ok\nnil", "def foo; p :ok; end; def bar; nil; end; x = (foo && bar); p x"
assert ":ok\nfalse", "def foo; p :ok; end; def bar; false; end; x = (foo && bar); p x"
+
+assert "[4, 5, 6, 7, 8]", "p (1..10).select { |i| true if (i == 4)..(i == 8) }"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100110/61293a42/attachment.html>
More information about the macruby-changes
mailing list