Revision
1186
Author
eloy.de.enige@gmail.com
Date
2009-03-26 16:37:25 -0700 (Thu, 26 Mar 2009)

Log Message

Tagged failing examples of the return spec and added it to the partially green list.

Modified Paths

Added Paths

Diff

Modified: MacRuby/branches/experimental/rakelib/spec.rake (1185 => 1186)


--- MacRuby/branches/experimental/rakelib/spec.rake	2009-03-26 23:37:12 UTC (rev 1185)
+++ MacRuby/branches/experimental/rakelib/spec.rake	2009-03-26 23:37:25 UTC (rev 1186)
@@ -40,6 +40,7 @@
     precedence
     predefined
     private
+    return
   }
   
   MSPEC_RUN = "./miniruby -v -I./mspec/lib -I./lib ./mspec/bin/mspec-run"

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/language/return_tags.txt (0 => 1186)


--- MacRuby/branches/experimental/spec/frozen/tags/macruby/language/return_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/language/return_tags.txt	2009-03-26 23:37:25 UTC (rev 1186)
@@ -0,0 +1,10 @@
+fails:The return keyword in a Thread raises a ThreadError if used to exit a thread
+fails:The return keyword when passed a splat returns nil when the ary is empty
+fails:The return keyword when passed a splat returns the first element when the array is size of 1
+fails:The return keyword when passed a splat returns a non-array when used as a splat
+fails:The return keyword when passed a splat calls 'to_a' on the splatted value first
+fails:The return keyword when passed a splat calls 'to_ary' on the splatted value first
+fails:The return keyword within a begin executes return at base of ensure stack
+fails:The return keyword within a block raises a LocalJumpError if there is no lexicaly enclosing method
+fails:The return keyword within a block causes the method that lexically encloses the block to return
+fails:The return keyword within a block returns from the lexically enclosing method even in case of chained calls
\ No newline at end of file