Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

untag specs that now pass

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@3833 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
commit 2c1544450c974cb7eb9cc268bbc836e2c25194b2 1 parent 5f5d6a1
Laurent Sansonetti authored
View
49 spec/frozen/core/string/valid_encoding_spec_disabled.rb
@@ -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
View
1  spec/frozen/tags/macruby/core/string/casecmp_tags.txt
@@ -1 +0,0 @@
-fails:String#casecmp doesn't do case mapping for non-ascii characters
View
2  spec/frozen/tags/macruby/core/string/chomp_tags.txt
@@ -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
View
3  spec/frozen/tags/macruby/core/string/chop_tags.txt
@@ -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
View
2  spec/frozen/tags/macruby/core/string/entries_tags.txt
@@ -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
View
3  spec/frozen/tags/macruby/core/string/gsub_tags.txt
@@ -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
View
2  spec/frozen/tags/macruby/core/string/include_tags.txt
@@ -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
View
3  spec/frozen/tags/macruby/core/string/initialize_tags.txt
@@ -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
View
1  spec/frozen/tags/macruby/core/string/lstrip_tags.txt
@@ -1 +0,0 @@
-fails:String#lstrip! modifies self in place and returns self
View
1  spec/frozen/tags/macruby/core/string/match_tags.txt
@@ -1 +0,0 @@
-fails:String#match tries to convert pattern to a string via to_str
View
2  spec/frozen/tags/macruby/core/string/rpartition_tags.txt
@@ -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
View
1  spec/frozen/tags/macruby/core/string/rstrip_tags.txt
@@ -1 +0,0 @@
-fails:String#rstrip returns a copy of self with trailing whitespace removed
View
1  spec/frozen/tags/macruby/core/string/strip_tags.txt
@@ -1 +0,0 @@
-fails:String#strip returns a new string with leading and trailing whitespace removed
View
3  spec/frozen/tags/macruby/core/string/sub_tags.txt
@@ -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
View
2  spec/frozen/tags/macruby/core/string/to_a_tags.txt
@@ -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
View
24 spec/frozen/tags/macruby/core/string/to_c_tags.txt
@@ -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
View
2  spec/frozen/tags/macruby/core/string/to_i_tags.txt
@@ -1,2 +0,0 @@
-fails:String#to_i ignores leading underscores
-fails:String#to_i ignores a leading mix of whitespaces and underscores
View
3  spec/frozen/tags/macruby/core/string/valid_encoding_tags.txt
@@ -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

0 comments on commit 2c15444

Please sign in to comment.
Something went wrong with that request. Please try again.