Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

enable encoding feature, and tag specs that fail

  • Loading branch information...
commit f8728e0e1d4ca0af313dbe0ea24116dd47374bba 1 parent e8d3132
@timfel timfel authored
Showing with 177 additions and 0 deletions.
  1. +2 −0  default.mspec
  2. BIN  spec/tags/core/dir/element_reference_tags.txt
  3. BIN  spec/tags/core/dir/glob_tags.txt
  4. +2 −0  spec/tags/core/env/each_pair_tags.txt
  5. +2 −0  spec/tags/core/env/each_tags.txt
  6. +1 −0  spec/tags/core/env/element_reference_tags.txt
  7. +2 −0  spec/tags/core/env/shift_tags.txt
  8. +1 −0  spec/tags/core/file/expand_path_tags.txt
  9. +2 −0  spec/tags/core/float/to_s_tags.txt
  10. +39 −0 spec/tags/core/io/read_tags.txt
  11. +14 −0 spec/tags/core/io/set_encoding_tags.txt
  12. +2 −0  spec/tags/core/kernel/chomp_tags.txt
  13. +2 −0  spec/tags/core/kernel/chop_tags.txt
  14. +1 −0  spec/tags/core/kernel/sprintf_tags.txt
  15. +4 −0 spec/tags/core/marshal/dump_tags.txt
  16. +2 −0  spec/tags/core/marshal/load_tags.txt
  17. +2 −0  spec/tags/core/marshal/restore_tags.txt
  18. +1 −0  spec/tags/core/string/byteslice_tags.txt
  19. +3 −0  spec/tags/core/string/center_tags.txt
  20. +5 −0 spec/tags/core/string/chars_tags.txt
  21. +2 −0  spec/tags/core/string/chop_tags.txt
  22. +5 −0 spec/tags/core/string/each_char_tags.txt
  23. +30 −0 spec/tags/core/string/element_set_tags.txt
  24. +7 −0 spec/tags/core/string/index_tags.txt
  25. +4 −0 spec/tags/core/string/inspect_tags.txt
  26. +3 −0  spec/tags/core/string/ljust_tags.txt
  27. +3 −0  spec/tags/core/string/rindex_tags.txt
  28. +3 −0  spec/tags/core/string/rjust_tags.txt
  29. +5 −0 spec/tags/core/string/slice_tags.txt
  30. +1 −0  spec/tags/core/string/tr_tags.txt
  31. +2 −0  spec/tags/language/string_tags.txt
  32. +6 −0 spec/tags/library/stringio/read_nonblock_tags.txt
  33. +6 −0 spec/tags/library/stringio/read_tags.txt
  34. +6 −0 spec/tags/library/stringio/readpartial_tags.txt
  35. +6 −0 spec/tags/library/stringio/sysread_tags.txt
  36. +1 −0  spec/tags/library/stringio/ungetbyte_tags.txt
View
2  default.mspec
@@ -25,6 +25,7 @@ class MSpecScript
core_files = ['spec/rubyspec/core',
"^spec/rubyspec/core/argf/seek_spec.rb",
"^spec/rubyspec/core/basicobject/",
+ "^spec/rubyspec/core/encoding/converter/",
"^spec/rubyspec/core/fixnum/right_shift_spec.rb",
"^spec/rubyspec/core/kernel/define_singleton_method_spec.rb",
"^spec/rubyspec/core/method/parameters_spec.rb",
@@ -94,6 +95,7 @@ class MSpecScript
MSpec.enable_feature :fiber_library
MSpec.enable_feature :continuation_library
+ MSpec.enable_feature :encoding
# The set of substitutions to transform a spec filename into a tag
# filename. The transformations are applied, in the given sequence, to a
View
BIN  spec/tags/core/dir/element_reference_tags.txt
Binary file not shown
View
BIN  spec/tags/core/dir/glob_tags.txt
Binary file not shown
View
2  spec/tags/core/env/each_pair_tags.txt
@@ -1,3 +1,5 @@
fails:ENV.each_pair returns each pair
fails:ENV.each_pair returns an Enumerator if called without a block
fails:ENV.each_pair uses the locale encoding
+fails:ENV.each_pair with encoding uses the locale encoding when Encoding.default_internal is nil
+fails:ENV.each_pair with encoding transcodes from the locale encoding to Encoding.default_internal if set
View
2  spec/tags/core/env/each_tags.txt
@@ -1,3 +1,5 @@
fails:ENV.each returns each pair
fails:ENV.each returns an Enumerator if called without a block
fails:ENV.each uses the locale encoding
+fails:ENV.each with encoding uses the locale encoding when Encoding.default_internal is nil
+fails:ENV.each with encoding transcodes from the locale encoding to Encoding.default_internal if set
View
1  spec/tags/core/env/element_reference_tags.txt
@@ -1 +1,2 @@
fails:ENV.[] uses the locale encoding
+fails:ENV.[] transcodes from the locale encoding to Encoding.default_internal if set
View
2  spec/tags/core/env/shift_tags.txt
@@ -1,2 +1,4 @@
fails:ENV.shift returns a pair and deletes it
fails:ENV.shift returns nil if ENV.empty?
+fails:ENV.shift uses the locale encoding if Encoding.default_internal is nil
+fails:ENV.shift transcodes from the locale encoding to Encoding.default_internal if set
View
1  spec/tags/core/file/expand_path_tags.txt
@@ -2,3 +2,4 @@ fails:File.expand_path does not replace multiple '/' at the beginning of the pat
fails:File.expand_path raises an ArgumentError if the path is not valid
fails:File.expand_path expands ~ENV['USER'] to the user's home directory
fails:File.expand_path produces a String in the default external encoding
+fails:File.expand_path raises an Encoding::CompatibilityError if the external encoding is not compatible
View
2  spec/tags/core/float/to_s_tags.txt
@@ -5,3 +5,5 @@ fails:Float#to_s uses e format for a negative value with whole part having 15 de
fails:Float#to_s outputs the minimal, unique form to represent the value
fails:Float#to_s uses e format for a positive value with fractional part having 6 significant figures
fails:Float#to_s uses e format for a negative value with fractional part having 6 significant figures
+fails:Float#to_s returns a String in US-ASCII encoding when Encoding.default_internal is nil
+fails:Float#to_s returns a String in US-ASCII encoding when Encoding.default_internal is not nil
View
39 spec/tags/core/io/read_tags.txt
@@ -17,3 +17,42 @@ fails:IO.read with BOM reads a file with a utf-16le bom
fails:IO.read with BOM reads a file with a utf-16be bom
fails:IO.read with BOM reads a file with a utf-32le bom
fails:IO.read with BOM reads a file with a utf-32be bom
+fails:IO#read when IO#external_encoding and IO#internal_encoding are nil sets the String encoding to Encoding.default_external
+fails:IO#read with internal encoding not specified does not transcode the String
+fails:IO#read with internal encoding not specified sets the String encoding to the external encoding
+fails:IO#read with internal encoding not specified reads bytes when passed a size
+fails:IO#read with internal encoding not specified returns a String in ASCII-8BIT when passed a size
+fails:IO#read with internal encoding not specified does not change the buffer's encoding when passed a limit
+fails:IO#read with internal encoding not specified trucates the buffer but does not change the buffer's encoding when no data remains
+fails:IO#read with internal encoding specified by open mode returns a transcoded String
+fails:IO#read with internal encoding specified by open mode sets the String encoding to the internal encoding
+fails:IO#read with internal encoding specified by open mode reads bytes when passed a size
+fails:IO#read with internal encoding specified by open mode returns a String in ASCII-8BIT when passed a size
+fails:IO#read with internal encoding specified by open mode does not change the buffer's encoding when passed a limit
+fails:IO#read with internal encoding specified by open mode trucates the buffer but does not change the buffer's encoding when no data remains
+fails:IO#read with internal encoding specified by open mode when passed nil for limit sets the buffer to a transcoded String
+fails:IO#read with internal encoding specified by open mode when passed nil for limit sets the buffer's encoding to the internal encoding
+fails:IO#read with internal encoding specified by mode: option returns a transcoded String
+fails:IO#read with internal encoding specified by mode: option sets the String encoding to the internal encoding
+fails:IO#read with internal encoding specified by mode: option reads bytes when passed a size
+fails:IO#read with internal encoding specified by mode: option returns a String in ASCII-8BIT when passed a size
+fails:IO#read with internal encoding specified by mode: option does not change the buffer's encoding when passed a limit
+fails:IO#read with internal encoding specified by mode: option trucates the buffer but does not change the buffer's encoding when no data remains
+fails:IO#read with internal encoding specified by mode: option when passed nil for limit sets the buffer to a transcoded String
+fails:IO#read with internal encoding specified by mode: option when passed nil for limit sets the buffer's encoding to the internal encoding
+fails:IO#read with internal encoding specified by internal_encoding: option returns a transcoded String
+fails:IO#read with internal encoding specified by internal_encoding: option sets the String encoding to the internal encoding
+fails:IO#read with internal encoding specified by internal_encoding: option reads bytes when passed a size
+fails:IO#read with internal encoding specified by internal_encoding: option returns a String in ASCII-8BIT when passed a size
+fails:IO#read with internal encoding specified by internal_encoding: option does not change the buffer's encoding when passed a limit
+fails:IO#read with internal encoding specified by internal_encoding: option trucates the buffer but does not change the buffer's encoding when no data remains
+fails:IO#read with internal encoding specified by internal_encoding: option when passed nil for limit sets the buffer to a transcoded String
+fails:IO#read with internal encoding specified by internal_encoding: option when passed nil for limit sets the buffer's encoding to the internal encoding
+fails:IO#read with internal encoding specified by encoding: option returns a transcoded String
+fails:IO#read with internal encoding specified by encoding: option sets the String encoding to the internal encoding
+fails:IO#read with internal encoding specified by encoding: option reads bytes when passed a size
+fails:IO#read with internal encoding specified by encoding: option returns a String in ASCII-8BIT when passed a size
+fails:IO#read with internal encoding specified by encoding: option does not change the buffer's encoding when passed a limit
+fails:IO#read with internal encoding specified by encoding: option trucates the buffer but does not change the buffer's encoding when no data remains
+fails:IO#read with internal encoding specified by encoding: option when passed nil for limit sets the buffer to a transcoded String
+fails:IO#read with internal encoding specified by encoding: option when passed nil for limit sets the buffer's encoding to the internal encoding
View
14 spec/tags/core/io/set_encoding_tags.txt
@@ -9,3 +9,17 @@ fails:IO#set_encoding raises an ArgumentError if passed the name of a nonexisten
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
+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 prevents the #internal_encoding from changing when Encoding.default_internal is changed
+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 nil
+fails:IO#set_encoding when passed nil, nil with 'r+' mode prevents the encodings from changing when Encoding defaults are changed
+fails:IO#set_encoding when passed nil, nil with 'w' mode sets the encodings to nil
+fails:IO#set_encoding when passed nil, nil with 'w' mode prevents the encodings from changing when Encoding defaults are changed
+fails:IO#set_encoding when passed nil, nil with 'w+' mode sets the encodings to nil
+fails:IO#set_encoding when passed nil, nil with 'w+' mode prevents the encodings from changing when Encoding defaults are changed
+fails:IO#set_encoding when passed nil, nil with 'a' mode sets the encodings to nil
+fails:IO#set_encoding when passed nil, nil with 'a' mode prevents the encodings from changing when Encoding defaults are changed
+fails:IO#set_encoding when passed nil, nil with 'a+' mode sets the encodings to nil
+fails:IO#set_encoding when passed nil, nil with 'a+' mode prevents the encodings from changing when Encoding defaults are changed
View
2  spec/tags/core/kernel/chomp_tags.txt
@@ -10,3 +10,5 @@ fails:Kernel#chomp removes the final carriage return of $_
fails:Kernel#chomp removes the final carriage return, newline of $_
fails:Kernel#chomp removes only the final newline of $_
fails:Kernel#chomp removes the value of $/ from the end of $_
+fails:Kernel.chomp removes the final carriage return, newline from a multi-byte $_
+fails:Kernel#chomp removes the final carriage return, newline from a multi-byte $_
View
2  spec/tags/core/kernel/chop_tags.txt
@@ -5,3 +5,5 @@ fails:Kernel.chop removes the final carriage return, newline of $_
fails:#chop is a private method
fails:#chop removes the final character of $_
fails:#chop removes the final carriage return, newline of $_
+fails:Kernel.chop removes the final multi-byte character from $_
+fails:Kernel#chop removes the final multi-byte character from $_
View
1  spec/tags/core/kernel/sprintf_tags.txt
@@ -10,3 +10,4 @@ fails:Kernel#sprintf with format string that contains %{} sections substitutes v
fails:Kernel#sprintf with format string that contains %{} sections raises KeyError when no matching key is in second argument
fails:Kernel#sprintf with format string that contains %<> sections formats values for named references
fails:Kernel#sprintf with format string that contains %<> sections raises KeyError when no matching key is in second argument
+fails:Kernel#sprintf returns a String in the same encoding as the format String
View
4 spec/tags/core/marshal/dump_tags.txt
@@ -142,3 +142,7 @@ fails:Marshal.dump with a Hash dumps an extended Hash
fails:Marshal.dump with a Struct dumps an extended Struct
fails:Marshal.dump with an Object dumps an extended Object
fails:Marshal.dump with an Object dumps an Object that has had an instance variable added and removed as though it was never set
+fails:Marshal.dump with a String dumps a US-ASCII String
+fails:Marshal.dump with a String dumps a UTF-8 String
+fails:Marshal.dump with a String dumps a String in another encoding
+fails:Marshal.dump with a String dumps multiple strings using symlinks for the :E (encoding) symbol
View
2  spec/tags/core/marshal/load_tags.txt
@@ -98,3 +98,5 @@ fails:Marshal.load for a Module raises ArgumentError if given the name of a non-
fails:Marshal.load for a Module loads an old module
fails:Marshal.load for a wrapped C pointer loads
fails:Marshal.load for a wrapped C pointer raises TypeError when the local class is missing _data_load
+fails:Marshal.load for a String loads a US-ASCII String
+fails:Marshal.load for a String loads a String in another encoding
View
2  spec/tags/core/marshal/restore_tags.txt
@@ -113,3 +113,5 @@ fails:Marshal.restore for a Module loads an old module
fails:Marshal.restore for a wrapped C pointer loads
fails:Marshal.restore for a wrapped C pointer raises TypeError when the local class is missing _data_load
fails:Marshal.restore for a wrapped C pointer raises ArgumentError when the local class is a regular object
+fails:Marshal.restore for a String loads a US-ASCII String
+fails:Marshal.restore for a String loads a String in another encoding
View
1  spec/tags/core/string/byteslice_tags.txt
@@ -18,3 +18,4 @@ fails:String#byteslice with Range always taints resulting strings when self is t
fails:String#byteslice with Range returns subclass instances
fails:String#byteslice with Range calls to_int on range arguments
fails:String#byteslice with Range works with Range subclasses
+fails:String#byteslice on on non ASCII strings returns byteslice of unicode strings
View
3  spec/tags/core/string/center_tags.txt
@@ -1,2 +1,5 @@
fails:String#center with length, padding taints result when self or padstr is tainted
fails:String#center with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self
+fails:String#center with length, padding with width returns a String in the same encoding as the original
+fails:String#center with length, padding with width, pattern returns a String in the compatible encoding
+fails:String#center with length, padding with width, pattern raises an Encoding::CompatibilityError if the encodings are incompatible
View
5 spec/tags/core/string/chars_tags.txt
@@ -1,2 +1,7 @@
fails:String#chars returns an enumerator when no block given
fails:String#chars is unicode aware
+fails:String#chars returns characters in the same encoding as self
+fails:String#chars works with multibyte characters
+fails:String#chars works if the String's contents is invalid for its encoding
+fails:String#chars returns a different character if the String is transcoded
+fails:String#chars uses the String's encoding to determine what characters it contains
View
2  spec/tags/core/string/chop_tags.txt
@@ -2,3 +2,5 @@ fails:String#chop taints result when self is tainted
fails:String#chop! raises a RuntimeError on a frozen instance that is modified
fails:String#chop! raises a RuntimeError on a frozen instance that would not be modified
fails:String#chop untrusts result when self is untrusted
+fails:String#chop removes a multi-byte character
+fails:String#chop! removes a multi-byte character
View
5 spec/tags/core/string/each_char_tags.txt
@@ -1,2 +1,7 @@
fails:String#each_char returns an enumerator when no block given
fails:String#each_char is unicode aware
+fails:String#each_char returns characters in the same encoding as self
+fails:String#each_char works with multibyte characters
+fails:String#each_char works if the String's contents is invalid for its encoding
+fails:String#each_char returns a different character if the String is transcoded
+fails:String#each_char uses the String's encoding to determine what characters it contains
View
30 spec/tags/core/string/element_set_tags.txt
@@ -14,3 +14,33 @@ fails:String#[]= with a Range index raises a RangeError if positive Range begin
fails:String#[]= with Fixnum index, count taints self if other_str is tainted
fails:String#[]= with Fixnum index, count calls #to_int to convert the index and count objects
fails:String#[]= with Fixnum index, count calls #to_str to convert the replacement object
+fails:String#[]= with Fixnum index raises a TypeError if passed a Fixnum replacement
+fails:String#[]= with Fixnum index raises an IndexError if the index is greater than character size
+fails:String#[]= with Fixnum index calls #to_int to convert the index
+fails:String#[]= with Fixnum index replaces a character with a multibyte character
+fails:String#[]= with Fixnum index replaces a multibyte character with a character
+fails:String#[]= with Fixnum index replaces a multibyte character with a multibyte character
+fails:String#[]= with Fixnum index encodes the String in an encoding compatible with the replacement
+fails:String#[]= with Fixnum index raises an Encoding::CompatibilityError if the replacement encoding is incompatible
+fails:String#[]= with String index encodes the String in an encoding compatible with the replacement
+fails:String#[]= with String index raises an Encoding::CompatibilityError if the replacement encoding is incompatible
+fails:String#[]= with a Regexp index replaces multibyte characters with characters
+fails:String#[]= with a Regexp index replaces multibyte characters with multibyte characters
+fails:String#[]= with a Regexp index encodes the String in an encoding compatible with the replacement
+fails:String#[]= with a Regexp index raises an Encoding::CompatibilityError if the replacement encoding is incompatible
+fails:String#[]= with a Range index replaces characters with a multibyte character
+fails:String#[]= with a Range index replaces multibyte characters with characters
+fails:String#[]= with a Range index replaces multibyte characters by negative indexes
+fails:String#[]= with a Range index replaces multibyte characters with multibyte characters
+fails:String#[]= with a Range index deletes a multibyte character
+fails:String#[]= with a Range index inserts a multibyte character
+fails:String#[]= with a Range index encodes the String in an encoding compatible with the replacement
+fails:String#[]= with a Range index raises an Encoding::CompatibilityError if the replacement encoding is incompatible
+fails:String#[]= with Fixnum index, count replaces characters with a multibyte character
+fails:String#[]= with Fixnum index, count replaces multibyte characters with characters
+fails:String#[]= with Fixnum index, count replaces multibyte characters with multibyte characters
+fails:String#[]= with Fixnum index, count deletes a multibyte character
+fails:String#[]= with Fixnum index, count inserts a multibyte character
+fails:String#[]= with Fixnum index, count raises an IndexError if the character index is out of range of a multibyte String
+fails:String#[]= with Fixnum index, count encodes the String in an encoding compatible with the replacement
+fails:String#[]= with Fixnum index, count raises an Encoding::CompatibilityError if the replacement encoding is incompatible
View
7 spec/tags/core/string/index_tags.txt
@@ -1 +1,8 @@
fails:String#index raises a TypeError if passed a Fixnum
+fails:String#index with String returns the character index of a multibyte character
+fails:String#index with String returns the character index after offset
+fails:String#index with String raises an Encoding::CompatibilityError if the encodings are incompatible
+fails:String#index with Regexp returns the character index of a multibyte character
+fails:String#index with Regexp returns the character index after offset
+fails:String#index with Regexp treats the offset as a character index
+fails:String#index with Regexp raises an Encoding::CompatibilityError if the encodings are incompatible
View
4 spec/tags/core/string/inspect_tags.txt
@@ -13,3 +13,7 @@ fails:String#inspect returns a string with a NUL character replaced by \x notati
fails:String#inspect when default external is UTF-8 returns a string with non-printing characters replaced by \u notation for Unicode strings
fails:String#inspect when default external is UTF-8 returns a string with a NUL character replaced by \x notation
fails:String#inspect when default external is UTF-8 returns a string with extended characters for Unicode strings
+fails:String#inspect when Encoding.default_internal is nil returns a String with Encoding.default_external encoding if it is ASCII compatible
+fails:String#inspect when Encoding.default_internal is nil returns a String in US-ASCII encoding if Encoding.default_external is not ASCII compatible
+fails:String#inspect when Encoding.default_internal is not nil returns a String with Encoding.default_internal encoding if it is ASCII compatible
+fails:String#inspect when Encoding.default_internal is not nil returns a String in US-ASCII encoding if Encoding.default_internal is not ASCII compatible
View
3  spec/tags/core/string/ljust_tags.txt
@@ -1,2 +1,5 @@
fails:String#ljust with length, padding taints result when self or padstr is tainted
fails:String#ljust with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self
+fails:String#ljust with length, padding with width returns a String in the same encoding as the original
+fails:String#ljust with length, padding with width, pattern returns a String in the compatible encoding
+fails:String#ljust with length, padding with width, pattern raises an Encoding::CompatibilityError if the encodings are incompatible
View
3  spec/tags/core/string/rindex_tags.txt
@@ -1,2 +1,5 @@
fails:String#rindex with Regexp supports \G which matches at the given start offset
fails:String#rindex with Regexp reverse matches multibyte UTF-8 chars
+fails:String#rindex with Regexp returns the reverse character index of a multibyte character
+fails:String#rindex with Regexp returns the character index before the finish
+fails:String#rindex with Regexp raises an Encoding::CompatibilityError if the encodings are incompatible
View
3  spec/tags/core/string/rjust_tags.txt
@@ -1,2 +1,5 @@
fails:String#rjust with length, padding taints result when self or padstr is tainted
fails:String#rjust with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self
+fails:String#rjust with length, padding with width returns a String in the same encoding as the original
+fails:String#rjust with length, padding with width, pattern returns a String in the compatible encoding
+fails:String#rjust with length, padding with width, pattern raises an Encoding::CompatibilityError if the encodings are incompatible
View
5 spec/tags/core/string/slice_tags.txt
@@ -28,3 +28,8 @@ fails:String#slice! with Regexp raises a RuntimeError on a frozen instance that
fails:String#slice! with Regexp raises a RuntimeError on a frozen instance that would not be modified
fails:String#slice! with Regexp, index raises a RuntimeError if self is frozen
fails:String#slice! with String raises a RuntimeError if self is frozen
+fails:String#slice! with index returns the character given by the character index
+fails:String#slice! with index, length returns the substring given by the character offsets
+fails:String#slice! Range returns the substring given by the character offsets of the range
+fails:String#slice! with Regexp returns the matching portion of self with a multi byte character
+fails:String#slice! with Regexp, index returns the encoding aware capture for the given index
View
1  spec/tags/core/string/tr_tags.txt
@@ -3,3 +3,4 @@ fails:String#tr treats a descending range in the replacement as containing just
fails:String#tr raises a ArgumentError a descending range in the replacement as containing just the start character
fails:String#tr raises a ArgumentError a descending range in the source as empty
fails:String#tr! raises a RuntimeError if self is frozen
+fails:String#tr can replace a 7-bit ASCII character with a multibyte one
View
2  spec/tags/language/string_tags.txt
@@ -5,3 +5,5 @@ fails:Ruby character strings Unicode escaping can be done with \u and four hex d
fails:Ruby character strings Unicode escaping can be done with \u{} and one to six hex digits
fails:Ruby character strings Unicode escaping with US-ASCII source encoding produces an ASCII string when escaping ASCII characters via \u
fails:Ruby character strings Unicode escaping with US-ASCII source encoding produces an ASCII string when escaping ASCII characters via \u{}
+fails:Ruby String interpolation creates a String having the Encoding of the components when all are the same Encoding
+fails:Ruby String interpolation raises an Encoding::CompatibilityError if the Encodings are not compatible
View
6 spec/tags/library/stringio/read_nonblock_tags.txt
@@ -19,3 +19,9 @@ fails:StringIO#read_nonblock when passed nil returns the remaining content from
fails:StringIO#read_nonblock when passed nil updates the current position
fails:StringIO#read_nonblock when passed nil returns an empty String when no data remains
fails:StringIO#read_nonblock when passed length returns an empty String when passed 0 and no data remains
+fails:StringIO#read_nonblock when passed length, buffer returns a String in ASCII-8BIT ignoring the encoding of the source String and buffer
+fails:StringIO#read_nonblock when passed length returns a String in ASCII-8BIT encoding when passed a length > 0
+fails:StringIO#read_nonblock when passed length returns an empty String in ASCII-8BIT encoding when passed length == 0
+fails:StringIO#read_nonblock when passed no arguments returns a String in the same encoding as the source String
+fails:StringIO#read_nonblock when passed no arguments returns an empty String in ASCII-8BIT encoding
+fails:StringIO#read_nonblock when passed nil returns an empty String in ASCII-8BIT encoding
View
6 spec/tags/library/stringio/read_tags.txt
@@ -1,2 +1,8 @@
fails:StringIO#read when passed length, buffer raises an error when passed a frozen String as buffer
fails:StringIO#read when passed length, buffer raises a RuntimeError when passed a frozen String as buffer
+fails:StringIO#read when passed length, buffer returns a String in ASCII-8BIT ignoring the encoding of the source String and buffer
+fails:StringIO#read when passed length returns a String in ASCII-8BIT encoding when passed a length > 0
+fails:StringIO#read when passed length returns an empty String in ASCII-8BIT encoding when passed length == 0
+fails:StringIO#read when passed no arguments returns a String in the same encoding as the source String
+fails:StringIO#read when passed no arguments returns an empty String in ASCII-8BIT encoding
+fails:StringIO#read when passed nil returns an empty String in ASCII-8BIT encoding
View
6 spec/tags/library/stringio/readpartial_tags.txt
@@ -6,3 +6,9 @@ fails:StringIO#readpartial when passed no arguments reads the whole content star
fails:StringIO#readpartial when passed no arguments updates the current position
fails:StringIO#readpartial when passed no arguments returns an empty String when no data remains
fails:StringIO#readpartial when self is not readable raises an IOError
+fails:StringIO#readpartial when passed length, buffer returns a String in ASCII-8BIT ignoring the encoding of the source String and buffer
+fails:StringIO#readpartial when passed length returns a String in ASCII-8BIT encoding when passed a length > 0
+fails:StringIO#readpartial when passed length returns an empty String in ASCII-8BIT encoding when passed length == 0
+fails:StringIO#readpartial when passed no arguments returns a String in the same encoding as the source String
+fails:StringIO#readpartial when passed no arguments returns an empty String in ASCII-8BIT encoding
+fails:StringIO#readpartial when passed nil returns an empty String in ASCII-8BIT encoding
View
6 spec/tags/library/stringio/sysread_tags.txt
@@ -6,3 +6,9 @@ fails:StringIO#sysread when passed length, buffer raises a RuntimeError when pas
fails:StringIO#sysread when passed no arguments returns an empty String when no data remains
fails:StringIO#sysread when passed nil returns an empty String when no data remains
fails:StringIO#sysread when passed length returns an empty String when passed 0 and no data remains
+fails:StringIO#sysread when passed length, buffer returns a String in ASCII-8BIT ignoring the encoding of the source String and buffer
+fails:StringIO#sysread when passed length returns a String in ASCII-8BIT encoding when passed a length > 0
+fails:StringIO#sysread when passed length returns an empty String in ASCII-8BIT encoding when passed length == 0
+fails:StringIO#sysread when passed no arguments returns a String in the same encoding as the source String
+fails:StringIO#sysread when passed no arguments returns an empty String in ASCII-8BIT encoding
+fails:StringIO#sysread when passed nil returns an empty String in ASCII-8BIT encoding
View
1  spec/tags/library/stringio/ungetbyte_tags.txt
@@ -9,3 +9,4 @@ fails:StringIO#ungetbyte prepends a string at the current position
fails:StringIO#ungetbyte calls #to_str to convert an object to a String
fails:StringIO#ungetbyte raises an IOError when the mode is not readable
fails:StringIO#ungetbyte raises an IOError when read is closed
+fails:StringIO#ungetbyte does not change the encoding of the data
Please sign in to comment.
Something went wrong with that request. Please try again.