From 8a470821770a7f76a7fd7b789392e8adc2cffabf Mon Sep 17 00:00:00 2001 From: Dan Schlosser Date: Tue, 28 Jul 2015 00:18:01 -0700 Subject: [PATCH] update tests to reflect new   rules --- test/ParseSentencesSpec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ParseSentencesSpec.js b/test/ParseSentencesSpec.js index 045a0ba..77012fa 100644 --- a/test/ParseSentencesSpec.js +++ b/test/ParseSentencesSpec.js @@ -8,7 +8,7 @@ describe("Sub._parseSentences works as expected ", function() { { description: "Splits on spaces", in: "A multiword test", - out: ["A", "multiword", "test"] + out: ["A ", "multiword ", "test"] }, { description: "A single word is valid", @@ -23,12 +23,12 @@ describe("Sub._parseSentences works as expected ", function() { { description: "Splits on tabs", in: "Even\ttabs\twork", - out: ["Even", "tabs", "work"] + out: ["Even ", "tabs ", "work"] }, { description: "Handles common punctuation ,.;:?!\" and parentheses apropriately", in: "Ok; we are \"here\": in Wilkes-Barre!?, finally.", - out: ["Ok", ";", "we", "are", "\"", "here", "\"", ":", "in", "Wilkes-Barre", "!", "?", ",", "finally", "."], + out: ["Ok", "; ", "we ", "are ", "\"", "here", "\"", ": ", "in ", "Wilkes-Barre", "!", "?", ", ", "finally", "."], }, { description: "Handles uncommon characters +/[]*{}() apropriately", @@ -38,7 +38,7 @@ describe("Sub._parseSentences works as expected ", function() { { description: "The characters -#$%^&_`~' do not break up words", in: "I am #1 with $5x10^6 in sales of `test-word_units, a 50% increase over A&M's", - out: ["I", "am", "#1", "with", "$5x10^6", "in", "sales", "of", "`test-word_units", ",", "a", "50%", "increase", "over", "A&M's"] + out: ["I ", "am ", "#1 ", "with ", "$5x10^6 ", "in ", "sales ", "of ", "`test-word_units", ", ", "a ", "50% ", "increase ", "over ", "A&M's"] } ];