[macruby-changes] [1725] MacRuby/branches/experimental

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 4 15:59:09 PDT 2009


Revision: 1725
          http://trac.macosforge.org/projects/ruby/changeset/1725
Author:   eloy.de.enige at gmail.com
Date:     2009-06-04 15:59:08 -0700 (Thu, 04 Jun 2009)
Log Message:
-----------
Tagged critical and failing examples of ARGF spec and added ARGF to spec:ci. Removed use of FileUtils from shared gets spec.

Modified Paths:
--------------
    MacRuby/branches/experimental/rakelib/spec.rake
    MacRuby/branches/experimental/spec/frozen/core/argf/shared/gets.rb

Added Paths:
-----------
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/bytes_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/chars_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/close_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/closed_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_byte_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_char_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_line_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/eof_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/file_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/fileno_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/getc_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/gets_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/lineno_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/pos_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/read_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readchar_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readline_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readlines_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/rewind_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/seek_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/skip_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/tell_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_a_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_i_tags.txt
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_io_tags.txt

Modified: MacRuby/branches/experimental/rakelib/spec.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/spec.rake	2009-06-04 21:35:41 UTC (rev 1724)
+++ MacRuby/branches/experimental/rakelib/spec.rake	2009-06-04 22:59:08 UTC (rev 1725)
@@ -55,6 +55,7 @@
   
   CI_DIRS = %w{
     spec/frozen/language
+    spec/frozen/core/argf
     spec/frozen/core/array
     spec/frozen/core/basicobject
     spec/frozen/core/class

Modified: MacRuby/branches/experimental/spec/frozen/core/argf/shared/gets.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/argf/shared/gets.rb	2009-06-04 21:35:41 UTC (rev 1724)
+++ MacRuby/branches/experimental/spec/frozen/core/argf/shared/gets.rb	2009-06-04 22:59:08 UTC (rev 1725)
@@ -66,8 +66,8 @@
     @tmp1_name_bak = @tmp1_name + ".bak"
     @tmp2_name_bak = @tmp2_name + ".bak"
 
-    FileUtils.cp @file1_name, @tmp1_name
-    FileUtils.cp @file2_name, @tmp2_name
+    # File.copy @file1_name, @tmp1_name
+    # File.copy @file2_name, @tmp2_name
 
     method = "ARGF.send(#{@method.inspect})"
     @code = "begin while line = #{method} do puts 'x' end rescue EOFError; end"

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/bytes_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/bytes_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/bytes_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,3 @@
+fails:ARGF.bytes yields each byte of all streams to the passed block
+fails:ARGF.bytes returns self when passed a block
+fails:ARGF.bytes returns an Enumerator when passed no block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/chars_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/chars_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/chars_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,3 @@
+fails:ARGF.chars yields each char of all streams to the passed block
+fails:ARGF.chars returns self when passed a block
+fails:ARGF.chars returns an Enumerator when passed no block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/close_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/close_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/close_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.close closes the current open stream

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/closed_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/closed_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/closed_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.closed? returns true if the current stream has been closed

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_byte_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_byte_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_byte_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,3 @@
+fails:ARGF.each_byte yields each byte of all streams to the passed block
+fails:ARGF.each_byte returns self when passed a block
+fails:ARGF.each_byte returns an Enumerator when passed no block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_char_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_char_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_char_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,3 @@
+fails:ARGF.each_char yields each char of all streams to the passed block
+fails:ARGF.each_char returns self when passed a block
+fails:ARGF.each_char returns an Enumerator when passed no block

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_line_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_line_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_line_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.each_line reads each line of files

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/each_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.each reads each line of files

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/eof_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/eof_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/eof_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,4 @@
+fails:ARGF.eof returns true when reaching the end of a file
+fails:ARGF.eof raises IOError when called on a closed stream
+fails:ARGF.eof? returns true when reaching the end of a file
+fails:ARGF.eof? raises IOError when called on a closed stream

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/file_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/file_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/file_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.file returns the current file object on each file

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/fileno_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/fileno_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/fileno_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.fileno raises an ArgumentError when called on a closed stream

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/getc_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/getc_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/getc_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.getc reads each char of files

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/gets_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/gets_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/gets_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,3 @@
+fails:ARGF.gets sets $_ global variable with each line read
+fails:ARGF.gets modifies the files when in place edit mode is on
+fails:ARGF.gets modifies and backups two files when in place edit mode is on

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/lineno_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/lineno_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/lineno_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.lineno returns the current line number on each file

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/pos_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/pos_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/pos_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,2 @@
+fails:ARGF.pos gives the correct position for each read operation
+fails:ARGF.pos raises an ArgumentError when called on a closed stream

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/read_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/read_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/read_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,6 @@
+fails:ARGF.read treats second argument as an output buffer
+fails:ARGF.read reads the contents of two files
+fails:ARGF.read reads the contents of one file and some characters from the second
+fails:ARGF.read reads across two files consecutively
+fails:ARGF.read reads the contents of one file and stdin
+fails:ARGF.read reads the contents of the same file twice

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readchar_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readchar_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readchar_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.getc reads each char of files

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readline_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readline_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readline_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,4 @@
+fails:ARGF.readline reads all lines of two files
+fails:ARGF.readline sets $_ global variable with each line read
+fails:ARGF.readline modifies the files when in place edit mode is on
+fails:ARGF.readline modifies and backups two files when in place edit mode is on
\ No newline at end of file

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readlines_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readlines_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/readlines_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,2 @@
+fails:ARGF.readlines reads all lines of all files
+fails:ARGF.readlines returns nil when end of stream reached

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/rewind_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/rewind_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/rewind_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.rewind raises an ArgumentError when end of stream reached

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/seek_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/seek_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/seek_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,3 @@
+fails:ARGF.seek sets the absolute position relative to beginning of file
+fails:ARGF.seek sets the position relative to current position in file
+fails:ARGF.seek sets the absolute position relative to end of file

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/skip_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/skip_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/skip_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.skip has no effect at end of stream

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/tell_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/tell_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/tell_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,2 @@
+fails:ARGF.tell gives the correct position for each read operation
+fails:ARGF.tell raises an ArgumentError when called on a closed stream

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_a_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_a_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_a_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1,2 @@
+fails:ARGF.to_a reads all lines of all files
+fails:ARGF.to_a returns nil when end of stream reached

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_i_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_i_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_i_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.to_i raises an ArgumentError when called on a closed stream

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_io_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_io_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/argf/to_io_tags.txt	2009-06-04 22:59:08 UTC (rev 1725)
@@ -0,0 +1 @@
+fails:ARGF.to_io returns the IO of the current file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090604/037cd518/attachment-0001.html>


More information about the macruby-changes mailing list