Revision: 3833 http://trac.macosforge.org/projects/ruby/changeset/3833 Author: lsansonetti@apple.com Date: 2010-03-19 17:00:58 -0700 (Fri, 19 Mar 2010) Log Message: ----------- untag specs that now pass Modified Paths: -------------- MacRuby/trunk/spec/frozen/tags/macruby/core/string/gsub_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/valid_encoding_tags.txt Removed Paths: ------------- MacRuby/trunk/spec/frozen/core/string/valid_encoding_spec_disabled.rb MacRuby/trunk/spec/frozen/tags/macruby/core/string/casecmp_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/chomp_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/chop_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/entries_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/include_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/initialize_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/lstrip_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/match_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/rpartition_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/rstrip_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/strip_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/sub_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_a_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_c_tags.txt MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_i_tags.txt Deleted: MacRuby/trunk/spec/frozen/core/string/valid_encoding_spec_disabled.rb =================================================================== --- MacRuby/trunk/spec/frozen/core/string/valid_encoding_spec_disabled.rb 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/core/string/valid_encoding_spec_disabled.rb 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,49 +0,0 @@ -# coding: UTF-8 -ruby_version_is "1.9" do - describe "String#valid_encoding?" do - it "returns true for a valid encoding" do - "abcdef".valid_encoding?.should be_true - "こんにちは".valid_encoding?.should be_true - "\xE3\x81\x82".valid_encoding?.should be_true # 'あ' in UTF-8 - end - - it "returns true for a valid encoding and a null character" do - "abc\0def".valid_encoding?.should be_true - "こん\0にちは".valid_encoding?.should be_true - "\0\xE3\x81\x82".valid_encoding?.should be_true # 'あ' in UTF-8 - end - - it "always returns true for binary encoding" do - 'abcdef'.force_encoding('ASCII-8BIT').valid_encoding?.should be_true - 'こんにちは'.force_encoding('ASCII-8BIT').valid_encoding?.should be_true - "\xE3\x81\x82".force_encoding('ASCII-8BIT').valid_encoding?.should be_true # 'あ' in UTF-8 - "\xE3".force_encoding('ASCII-8BIT').valid_encoding?.should be_true - end - - it "returns false for an invalid encoding" do - "\xE3".valid_encoding?.should be_false - "\xE3\x0\x82".valid_encoding?.should be_false - "\xA4\xA2".valid_encoding?.should be_false # 'あ' in EUC-JP (invalid UTF-8) - end - - it "returns false when a valid encoding has been made invalid" do - str = 'こんにちは' - str.setbyte(0, 0) - str.valid_encoding?.should be_false - - str = 'こんにちは' - str.force_encoding('EUC-JP') - str.valid_encoding?.should be_false - end - - it "returns true for an invalid encoding made valid" do - str = "\xE3\x0\x82" - str.setbyte(1, 0x81) - str.valid_encoding?.should be_true - - str = "\xA4\xA2" # 'あ' in EUC-JP - str.force_encoding('EUC-JP') # set the correct encoding - str.valid_encoding?.should be_true - end - end -end Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/casecmp_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/casecmp_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/casecmp_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1 +0,0 @@ -fails:String#casecmp doesn't do case mapping for non-ascii characters Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/chomp_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/chomp_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/chomp_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,2 +0,0 @@ -fails:String#chomp with separator removes carriage return (except \r) chars multiple times when separator is an empty string -fails:String#chomp! with separator modifies self in place and returns self Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/chop_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/chop_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/chop_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,3 +0,0 @@ -fails:String#chop! raises a TypeError when self is frozen -fails:String#chop! raises a RuntimeError when self is frozen -fails:String#chop returns a new string with the last character removed Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/entries_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/entries_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/entries_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,2 +0,0 @@ -fails:String#entries returns an empty array for empty strings -fails:String#entries returns an array containing the string for non-empty strings Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/string/gsub_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/gsub_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/gsub_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,11 +1,8 @@ fails:String#gsub with pattern and replacement untrusts the result if the original string or replacement is untrusted -fails:String#gsub with pattern and block raises a RuntimeError if the string is modified while substituting fails:String#gsub with pattern and block untrusts the result if the original string or replacement is untrusted fails:String#gsub! with pattern and replacement untrusts self if replacement is untrusted fails:String#gsub! with pattern and block untrusts self if block's result is untrusted fails:String#gsub with pattern and Hash untrusts the result if the original string is untrusted fails:String#gsub with pattern and Hash untrusts the result if a hash value is untrusted fails:String#gsub with pattern and Hash raises a TypeError if the hash has a default proc -fails:String#gsub! with pattern and replacement raises a RuntimeError when self is frozen -fails:String#gsub! with pattern and block raises a RuntimeError when self is frozen fails:String#gsub with pattern and replacement supports \G which matches at the beginning of the remaining (non-matched) string Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/include_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/include_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/include_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,2 +0,0 @@ -fails:String#include? with Fixnum returns true if self contains the given char -fails:String#include? with Fixnum uses fixnum % 256 Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/initialize_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/initialize_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/initialize_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,3 +0,0 @@ -critical:String#initialize raises TypeError on inconvertible object -critical:String#initialize converts its argument to a string representation -fails:String#initialize raises a TypeError if self is frozen Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/lstrip_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/lstrip_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/lstrip_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1 +0,0 @@ -fails:String#lstrip! modifies self in place and returns self Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/match_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/match_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/match_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1 +0,0 @@ -fails:String#match tries to convert pattern to a string via to_str Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/rpartition_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/rpartition_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/rpartition_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,2 +0,0 @@ -critical:String#rpartition with String converts its argument using :to_str -fails:String#rpartition with String returns an array of substrings based on splitting on the given string Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/rstrip_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/rstrip_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/rstrip_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1 +0,0 @@ -fails:String#rstrip returns a copy of self with trailing whitespace removed Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/strip_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/strip_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/strip_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1 +0,0 @@ -fails:String#strip returns a new string with leading and trailing whitespace removed Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/sub_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/sub_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/sub_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,3 +0,0 @@ -fails:String#sub! with pattern, replacement raises a TypeError when self is frozen -fails:String#sub! with pattern and block raises a RuntimeError if the string is modified while substituting -fails:String#sub! with pattern, replacement raises a RuntimeError when self is frozen Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_a_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_a_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_a_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,2 +0,0 @@ -fails:String#to_a returns an empty array for empty strings -fails:String#to_a returns an array containing the string for non-empty strings Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_c_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_c_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_c_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,24 +0,0 @@ -critical:String#to_c returns a Complex object -critical:String#to_c understands integers -critical:String#to_c understands negative integers -critical:String#to_c understands fractions (numerator/denominator) for the real part -critical:String#to_c understands fractions (numerator/denominator) for the imaginary part -critical:String#to_c understands negative fractions (-numerator/denominator) for the real part -critical:String#to_c understands negative fractions (-numerator/denominator) for the imaginary part -critical:String#to_c understands floats (a.b) for the real part -critical:String#to_c understands floats (a.b) for the imaginary part -critical:String#to_c understands negative floats (-a.b) for the real part -critical:String#to_c understands negative floats (-a.b) for the imaginary part -critical:String#to_c understands an integer followed by 'i' to mean that integer is the imaginary part -critical:String#to_c understands a negative integer followed by 'i' to mean that negative integer is the imaginary part -critical:String#to_c understands an 'i' by itself as denoting a complex number with an imaginary part of 1 -critical:String#to_c understands a '-i' by itself as denoting a complex number with an imaginary part of -1 -critical:String#to_c understands 'a+bi' to mean a complex number with 'a' as the real part, 'b' as the imaginary -critical:String#to_c understands 'a-bi' to mean a complex number with 'a' as the real part, '-b' as the imaginary -critical:String#to_c understands scientific notation for the real part -critical:String#to_c understands negative scientific notation for the real part -critical:String#to_c understands scientific notation for the imaginary part -critical:String#to_c understands negative scientific notation for the imaginary part -critical:String#to_c understands scientific notation for the real and imaginary part in the same String -critical:String#to_c understands negative scientific notation for the real and imaginary part in the same String -critical:String#to_c returns a complex number with 0 as the real part, 0 as the imaginary part for unrecognised Strings Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_i_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_i_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/to_i_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,2 +0,0 @@ -fails:String#to_i ignores leading underscores -fails:String#to_i ignores a leading mix of whitespaces and underscores Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/string/valid_encoding_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/string/valid_encoding_tags.txt 2010-03-19 23:58:12 UTC (rev 3832) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/valid_encoding_tags.txt 2010-03-20 00:00:58 UTC (rev 3833) @@ -1,4 +1 @@ fails:String#valid_encoding? returns true for all encodings self is valid in -fails:String#valid_encoding? returns false if self is valid in one encoding, but invalid in the one it's tagged with -fails:String#valid_encoding? returns false if self contains a character invalid in the associated encoding -fails:String#valid_encoding? returns false if a valid String had an invalid character appended to it
participants (1)
-
source_changes@macosforge.org