Skip to content
Browse files

Revert "use unicode encoding for double word characters, to not break…

… java"

This reverts commit 46f2a5c.
  • Loading branch information...
1 parent 46f2a5c commit 7a2b6af219d80e8fd4e4717e3bc1e00e4092f216 @jakl jakl committed Mar 5, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 validate.yml
View
6 validate.yml
@@ -18,7 +18,7 @@ tests:
expected: true
- description: "Valid Tweet: 140 characters (double word characters)"
- text: "\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31\uD83D\uDC31"
+ text: "🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱"
expected: true
- description: "Invalid Tweet: no characters (empty)"
@@ -228,13 +228,13 @@ tests:
expected: 83
- description: "Count unicode chars outside the basic multilingual plane (double word)"
- text: "\uD800\uDC00\uDBFF\uDFFF"
+ text: "𐀀􏿿"
expected: 2
- description: "Count unicode chars inside the basic multilingual plane"
text: "저찀쯿쿿"
expected: 4
- description: "Count a mix of single byte single word, and double word unicode characters"
- text: "H\uD83D\uDC31"
+ text: "H🐱"
expected: 3

0 comments on commit 7a2b6af

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