This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -10,61 +10,14 @@ fails:Regexp.new given a String ignores the third argument if it is 's' or 'sjis
fails:Regexp.new given a String ignores the third argument if it is 'u' or 'utf8' (case-insensitive)
fails:Regexp.new given a String uses US_ASCII encoding if third argument is 'n' or 'none' (case insensitive) and only ascii characters
fails:Regexp.new given a String uses ASCII_8BIT encoding if third argument is 'n' or 'none' (case insensitive) and non-ascii characters
fails:Regexp.new given a String with escaped characters raises a Regexp error if there is a trailing backslash
fails:Regexp.new given a String with escaped characters raises a RegexpError if \x is not followed by any hexadecimal digits
fails:Regexp.new given a String with escaped characters accepts characters followed by \u{HHHH}
fails:Regexp.new given a String with escaped characters accepts \u{HHHH} followed by characters
fails:Regexp.new given a String with escaped characters accepts escaped hexadecimal digits followed by \u{HHHH}
fails:Regexp.new given a String with escaped characters accepts escaped octal digits followed by \u{HHHH}
fails:Regexp.new given a String with escaped characters accepts a combination of escaped octal and hexadecimal digits and \u{HHHH}
fails:Regexp.new given a String with escaped characters accepts \uHHHH for a single Unicode codepoint
fails:Regexp.new given a String with escaped characters accepts characters followed by \uHHHH
fails:Regexp.new given a String with escaped characters accepts \uHHHH followed by characters
fails:Regexp.new given a String with escaped characters accepts escaped hexadecimal digits followed by \uHHHH
fails:Regexp.new given a String with escaped characters accepts escaped octal digits followed by \uHHHH
fails:Regexp.new given a String with escaped characters accepts a combination of escaped octal and hexadecimal digits and \uHHHH
fails:Regexp.new given a String with escaped characters raises a RegexpError if less than four digits are given for \uHHHH
fails:Regexp.new given a String with escaped characters raises a RegexpError if the \u{} escape is empty
fails:Regexp.new given a String with escaped characters raises a RegexpError if more than six hexadecimal digits are given
fails:Regexp.new given a String with escaped characters returns a Regexp with US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding
fails:Regexp.new given a String with escaped characters returns a Regexp with source String having US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding
fails:Regexp.new given a String with escaped characters returns a Regexp with US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present
fails:Regexp.new given a String with escaped characters returns a Regexp with source String having US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present
fails:Regexp.new given a String with escaped characters returns a Regexp with UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present
fails:Regexp.new given a String with escaped characters returns a Regexp with source String having UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present
fails:Regexp.new given a String with escaped characters returns a Regexp with the input String's encoding
fails:Regexp.new given a String with escaped characters returns a Regexp with source String having the input String's encoding
fails:Regexp.new given a Regexp uses the argument as a literal to construct a Regexp object
fails:Regexp.new given a Regexp preserves any options given in the Regexp literal
fails:Regexp.new given a Regexp does not honour options given as additional arguments
fails:Regexp.new given a Regexp sets the encoding to UTF-8 if the Regexp literal has the 'u' option
fails:Regexp.new given a Regexp sets the encoding to EUC-JP if the Regexp literal has the 'e' option
fails:Regexp.new given a Regexp sets the encoding to Windows-31J if the Regexp literal has the 's' option
fails:Regexp.new given a Regexp sets the encoding to US-ASCII if the Regexp literal has the 'n' option and the source String is ASCII only
fails:Regexp.new given a Regexp sets the encoding to source String's encoding if the Regexp literal has the 'n' option and the source String is not ASCII only
fails:Regexp.new given a String with escaped characters accepts a three-digit octal value
fails:Regexp.new given a String with escaped characters interprets a digit following a three-digit octal value as a character
fails:Regexp.new given a String with escaped characters accepts '\M-\n'
fails:Regexp.new given a String with escaped characters accepts '\M-\t'
fails:Regexp.new given a String with escaped characters accepts '\M-\r'
fails:Regexp.new given a String with escaped characters accepts '\M-\f'
fails:Regexp.new given a String with escaped characters accepts '\M-\v'
fails:Regexp.new given a String with escaped characters accepts '\M-\a'
fails:Regexp.new given a String with escaped characters accepts '\M-\e'
fails:Regexp.new given a String with escaped characters accepts '\M-\C-\n'
fails:Regexp.new given a String with escaped characters accepts '\M-\C-\t'
fails:Regexp.new given a String with escaped characters accepts '\M-\C-\r'
fails:Regexp.new given a String with escaped characters accepts '\M-\C-\f'
fails:Regexp.new given a String with escaped characters accepts '\M-\C-\v'
fails:Regexp.new given a String with escaped characters accepts '\M-\C-\a'
fails:Regexp.new given a String with escaped characters accepts '\M-\C-\e'
fails:Regexp.new given a String with escaped characters accepts '\M-\c\n'
fails:Regexp.new given a String with escaped characters accepts '\M-\c\t'
fails:Regexp.new given a String with escaped characters accepts '\M-\c\r'
fails:Regexp.new given a String with escaped characters accepts '\M-\c\f'
fails:Regexp.new given a String with escaped characters accepts '\M-\c\v'
fails:Regexp.new given a String with escaped characters accepts '\M-\c\a'
fails:Regexp.new given a String with escaped characters accepts '\M-\c\e'
fails:Regexp.new given a String with escaped characters accepts '\M-\c\n'
fails:Regexp.new given a String with escaped characters accepts '\M-\C-\n'
fails:Regexp.new given a String with escaped characters accepts '\M-\n'