Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Create @mutlbyte tag showing 3 examples, 3 failures

  • Loading branch information...
commit d9f5cdb1241dd1b1665a2b7fbc3028e89f35c5b7 1 parent 7f60a6f
@hipe hipe authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 spec/compiler/multibyte_chars_spec.rb
View
13 spec/compiler/multibyte_chars_spec.rb
@@ -4,21 +4,23 @@
require 'spec_helper'
module MultibyteCharsSpec
- describe "an anything symbol" do
+ describe "an anything symbol", :multibyte => true do
testing_expression '.'
it "matches an UTF-8 character" do
parse_multibyte("ø").should_not be_nil
end
end
-
- describe "A character class containing UTF-8 characters" do
+
+ describe "A character class containing UTF-8 characters", :multibyte => true do
testing_expression "[æøå]"
it "recognizes the UTF-8 characters" do
parse_multibyte("ø").should_not be_nil
end
end
-
- describe "a character class repetition containing UTF-8 characters mixed with other expressions" do
+
+ describe( "a character class repetition containing UTF-8 characters mixed with other expressions",
+ :multibyte => true
+ ) do
testing_expression '[æøå]+ "a"'
it "lazily instantiates a node for the character" do
result = parse_multibyte('æøåa')
@@ -34,5 +36,4 @@ module MultibyteCharsSpec
result.elements[1].text_value == "a"
end
end
-
end
Please sign in to comment.
Something went wrong with that request. Please try again.