Skip to content

Commit

Permalink
[Truffle] Removing IO shim method and untagging specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed Apr 23, 2015
1 parent 9bed84f commit 944c751
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 148 deletions.
3 changes: 0 additions & 3 deletions spec/truffle/tags/core/io/binread_tags.txt
@@ -1,4 +1 @@
fails:IO.binread reads the contents of a file
fails:IO.binread returns a String in ASCII-8BIT encoding
fails:IO.binread returns a String in ASCII-8BIT encoding regardless of Encoding.default_internal
fails:IO.binread raises an Errno::EINVAL when not passed a valid offset
1 change: 0 additions & 1 deletion spec/truffle/tags/core/io/binwrite_tags.txt

This file was deleted.

20 changes: 0 additions & 20 deletions spec/truffle/tags/core/io/external_encoding_tags.txt
@@ -1,22 +1,2 @@
fails:IO#external_encoding with 'r' mode when Encoding.default_internal is nil returns Encoding.default_external if the external encoding is not set
fails:IO#external_encoding with 'r' mode when Encoding.default_internal is nil returns Encoding.default_external when that encoding is changed after the instance is created
fails:IO#external_encoding with 'r' mode when Encoding.default_internal is nil returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'r' mode when Encoding.default_external == Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'r' mode when Encoding.default_external != Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'rb' mode returns the external encoding specified by the mode argument
fails:IO#external_encoding with 'r+' mode when Encoding.default_internal is nil returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'r+' mode when Encoding.default_external != Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'r+' mode when Encoding.default_external == Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'w' mode when Encoding.default_internal is nil returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'w' mode when Encoding.default_external != Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'w' mode when Encoding.default_external == Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'wb' mode returns the external encoding specified by the mode argument
fails:IO#external_encoding with 'w+' mode when Encoding.default_internal is nil returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'w+' mode when Encoding.default_external != Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'w+' mode when Encoding.default_external == Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'a' mode when Encoding.default_internal is nil returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'a' mode when Encoding.default_external != Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'a' mode when Encoding.default_external == Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'a+' mode when Encoding.default_internal is nil returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'a+' mode when Encoding.default_external != Encoding.default_internal returns the external encoding specified when the instance was created
fails:IO#external_encoding with 'a+' mode when Encoding.default_external == Encoding.default_internal returns the external encoding specified when the instance was created
16 changes: 0 additions & 16 deletions spec/truffle/tags/core/io/for_fd_tags.txt
@@ -1,18 +1,2 @@
fails:IO.for_fd uses the external encoding specified in the mode argument
fails:IO.for_fd uses the external and the internal encoding specified in the mode argument
fails:IO.for_fd uses the external encoding specified via the :external_encoding option
fails:IO.for_fd uses the internal encoding specified via the :internal_encoding option
fails:IO.for_fd uses the colon-separated encodings specified via the :encoding option
fails:IO.for_fd ingores the :encoding option when the :external_encoding option is present
fails:IO.for_fd ingores the :encoding option when the :internal_encoding option is present
fails:IO.for_fd uses the encoding specified via the :mode option hash
fails:IO.for_fd ignores the :internal_encoding option when the same as the external encoding
fails:IO.for_fd sets internal encoding to nil when passed '-'
fails:IO.for_fd does not use binary encoding when mode encoding is specified
fails:IO.for_fd does not use binary encoding when :encoding option is specified
fails:IO.for_fd does not use binary encoding when :external_encoding option is specified
fails:IO.for_fd does not use binary encoding when :internal_encoding option is specified
fails:IO.for_fd coerces :external_encoding option with #to_str
fails:IO.for_fd coerces :internal_encoding option with #to_str
fails:IO.for_fd raises an Errno::EBADF if the file descriptor is not valid
fails:IO.for_fd raises an IOError if passed a closed stream
3 changes: 0 additions & 3 deletions spec/truffle/tags/core/io/gets_tags.txt
Expand Up @@ -2,8 +2,5 @@ fails:IO#gets assigns the returned line to $_
fails:IO#gets raises IOError on closed stream
fails:IO#gets reads limit bytes and extra bytes when limit is reached not at character boundary
fails:IO#gets read limit bytes and extra bytes with maximum of 16
fails:IO#gets uses the IO object's external encoding, when set
fails:IO#gets transcodes into the default internal encoding
fails:IO#gets overwrites the default external encoding with the IO object's own external encoding
fails:IO#gets ignores the internal encoding if the IO object's external encoding is ASCII-8BIT
fails:IO#gets transcodes to internal encoding if the IO object's external encoding is ASCII-8BIT
30 changes: 0 additions & 30 deletions spec/truffle/tags/core/io/internal_encoding_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/truffle/tags/core/io/isatty_tags.txt
@@ -1,2 +1 @@
fails:IO#isatty returns true if this stream is a terminal device (TTY)
fails:IO#isatty raises IOError on closed stream
16 changes: 0 additions & 16 deletions spec/truffle/tags/core/io/new_tags.txt
@@ -1,18 +1,2 @@
fails:IO.new uses the external encoding specified in the mode argument
fails:IO.new uses the external and the internal encoding specified in the mode argument
fails:IO.new uses the external encoding specified via the :external_encoding option
fails:IO.new uses the internal encoding specified via the :internal_encoding option
fails:IO.new uses the colon-separated encodings specified via the :encoding option
fails:IO.new ingores the :encoding option when the :external_encoding option is present
fails:IO.new ingores the :encoding option when the :internal_encoding option is present
fails:IO.new uses the encoding specified via the :mode option hash
fails:IO.new ignores the :internal_encoding option when the same as the external encoding
fails:IO.new sets internal encoding to nil when passed '-'
fails:IO.new does not use binary encoding when mode encoding is specified
fails:IO.new does not use binary encoding when :encoding option is specified
fails:IO.new does not use binary encoding when :external_encoding option is specified
fails:IO.new does not use binary encoding when :internal_encoding option is specified
fails:IO.new coerces :external_encoding option with #to_str
fails:IO.new coerces :internal_encoding option with #to_str
fails:IO.new raises an Errno::EBADF if the file descriptor is not valid
fails:IO.new raises an IOError if passed a closed stream
16 changes: 0 additions & 16 deletions spec/truffle/tags/core/io/open_tags.txt
@@ -1,19 +1,3 @@
fails:IO.open uses the external encoding specified in the mode argument
fails:IO.open uses the external and the internal encoding specified in the mode argument
fails:IO.open uses the external encoding specified via the :external_encoding option
fails:IO.open uses the internal encoding specified via the :internal_encoding option
fails:IO.open uses the colon-separated encodings specified via the :encoding option
fails:IO.open ingores the :encoding option when the :external_encoding option is present
fails:IO.open ingores the :encoding option when the :internal_encoding option is present
fails:IO.open uses the encoding specified via the :mode option hash
fails:IO.open ignores the :internal_encoding option when the same as the external encoding
fails:IO.open sets internal encoding to nil when passed '-'
fails:IO.open does not use binary encoding when mode encoding is specified
fails:IO.open does not use binary encoding when :encoding option is specified
fails:IO.open does not use binary encoding when :external_encoding option is specified
fails:IO.open does not use binary encoding when :internal_encoding option is specified
fails:IO.open coerces :external_encoding option with #to_str
fails:IO.open coerces :internal_encoding option with #to_str
fails:IO.open raises an Errno::EBADF if the file descriptor is not valid
fails:IO.open raises an IOError if passed a closed stream
fails:IO.open does not propagate a StandardError raised by #close
Expand Down
1 change: 0 additions & 1 deletion spec/truffle/tags/core/io/read_tags.txt
Expand Up @@ -19,7 +19,6 @@ fails:IO#read returns an empty string when the current pos is bigger than the co
fails:IO#read returns nil at end-of-file with a length
fails:IO#read with length argument returns nil when the current pos is bigger than the content size
fails:IO#read raises IOError on closed stream
fails:IO#read in binary mode does not transcode file contents when an internal encoding is specified
fails:IO.read with BOM reads a file without a bom
fails:IO.read with BOM reads a file with a utf-8 bom
fails:IO.read with BOM reads a file with a utf-16le bom
Expand Down
1 change: 0 additions & 1 deletion spec/truffle/tags/core/io/readlines_tags.txt
Expand Up @@ -3,6 +3,5 @@ fails:IO#readlines when passed a string that starts with a | gets data from the
fails:IO#readlines when passed a string that starts with a | gets data from a fork when passed -
fails:IO.readlines when passed name, object when the object is a Fixnum uses the object as a limit if it is a Fixnum
fails:IO.readlines when passed name, object when the object is a String accepts non-ASCII data as separator
fails:IO.readlines encodes lines using the default internal encoding, when set
windows:IO.readlines does not change $_
windows:IO.readlines raises TypeError if the first parameter is nil
14 changes: 0 additions & 14 deletions spec/truffle/tags/core/io/set_encoding_tags.txt
@@ -1,17 +1,3 @@
fails:IO#set_encoding when passed nil, nil with 'r' mode sets the encodings to the current Encoding defaults
fails:IO#set_encoding when passed nil, nil with 'r' mode allows the #external_encoding to change when Encoding.default_external is changed
fails:IO#set_encoding when passed nil, nil with 'rb' mode returns Encoding.default_external
fails:IO#set_encoding when passed nil, nil with 'r+' mode sets the encodings to the current Encoding defaults
fails:IO#set_encoding when passed nil, nil with 'w' mode sets the encodings to the current Encoding defaults
fails:IO#set_encoding when passed nil, nil with 'w+' mode sets the encodings to the current Encoding defaults
fails:IO#set_encoding when passed nil, nil with 'a' mode sets the encodings to the current Encoding defaults
fails:IO#set_encoding when passed nil, nil with 'a+' mode sets the encodings to the current Encoding defaults
fails:IO#set_encoding returns self
fails:IO#set_encoding sets the external encoding when passed an Encoding argument
fails:IO#set_encoding sets the external encoding when passed the name of an Encoding
fails:IO#set_encoding ignores the internal encoding if the same as external when passed Encoding objects
fails:IO#set_encoding ignores the internal encoding if the same as external when passed encoding names separanted by ':'
fails:IO#set_encoding sets the external and internal encoding when passed the names of Encodings separated by ':'
fails:IO#set_encoding sets the external and internal encoding when passed two String arguments
fails:IO#set_encoding calls #to_str to convert an abject to a String
fails:IO#set_encoding calls #to_str to convert the second argument to a String
1 change: 0 additions & 1 deletion spec/truffle/tags/core/io/tty_tags.txt
@@ -1,2 +1 @@
fails:IO#tty? returns true if this stream is a terminal device (TTY)
fails:IO#tty? raises IOError on closed stream
21 changes: 0 additions & 21 deletions spec/truffle/tags/core/io/write_tags.txt
@@ -1,25 +1,4 @@
fails:IO#write on a file writes all of the string's bytes but buffers them
fails:IO#write on a file uses the encoding from the given option for non-ascii encoding
fails:IO#write on a file writes binary data if no encoding is given
fails:IO.write coerces the argument to a string using to_s
fails:IO.write returns the number of bytes written
fails:IO.write creates a file if missing
fails:IO.write creates file if missing even if offset given
fails:IO.write truncates the file and writes the given string
fails:IO.write doesn't truncate the file and writes the given string if an offset is given
fails:IO.write doesn't truncate and writes at the given offset after passing empty opts
fails:IO.write accepts a :mode option
fails:IO.write truncates if empty :opts provided and offset skipped
fails:IO.write writes binary data if no encoding is given
fails:IO#write coerces the argument to a string using to_s
fails:IO#write checks if the file is writable if writing more than zero bytes
fails:IO#write returns the number of bytes written
fails:IO#write invokes to_s on non-String argument
fails:IO#write writes all of the string's bytes without buffering if mode is sync
fails:IO#write does not warn if called after IO#read
fails:IO#write writes to the current position after IO#read
fails:IO#write advances the file position by the count of given bytes
fails:IO#write raises IOError on closed stream
fails(windows):IO#write on Windows normalizes line endings in text mode
fails(windows):IO#write on Windows does not normalize line endings in binary mode
fails:IO.write on a FIFO writes correctly
4 changes: 0 additions & 4 deletions truffle/src/main/ruby/core/shims.rb
Expand Up @@ -18,10 +18,6 @@ def internal_encoding
@internal
end

def set_encoding(external, internal)
@external = external
@internal = internal
end
end

STDIN = File.new(0)
Expand Down

0 comments on commit 944c751

Please sign in to comment.