From aa216d910feae88a7b1f6b602182821c19c7dc4f Mon Sep 17 00:00:00 2001 From: Dmitry Pashkevich Date: Tue, 1 Apr 2014 18:50:53 +0400 Subject: [PATCH] Added international characters test --- word-count/word-count_test.spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/word-count/word-count_test.spec.js b/word-count/word-count_test.spec.js index 26a7f6eb..c4d2ef71 100644 --- a/word-count/word-count_test.spec.js +++ b/word-count/word-count_test.spec.js @@ -35,4 +35,9 @@ describe("words()", function() { var expectedCounts = { constructor: 2 }; expect(words("constructor Constructor")).toEqual(expectedCounts); }); + + xit("counts properly international characters", function() { + var expectedCounts = { hola: 1, "qué": 1, tal: 1, "привет": 1 }; + expect(words("¡Hola! ¿Qué tal? Привет!")).toEqual(expectedCounts); + }); });