From 8c7b37be41cc7d2df6483d32b9ab1b7fa8a56287 Mon Sep 17 00:00:00 2001 From: dpashkevich Date: Wed, 2 Apr 2014 00:02:14 +0400 Subject: [PATCH] Add test for multiline string --- word-count/word-count_test.spec.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/word-count/word-count_test.spec.js b/word-count/word-count_test.spec.js index c4d2ef71..e9e017f3 100644 --- a/word-count/word-count_test.spec.js +++ b/word-count/word-count_test.spec.js @@ -35,9 +35,14 @@ 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); }); + + xit("counts multiline", function() { + var expectedCounts = { hello: 1, world: 1 }; + expect(words("hello\nworld")).toEqual(expectedCounts); + }); });