Skip to content

Commit

Permalink
update tests to reflect new   rules
Browse files Browse the repository at this point in the history
  • Loading branch information
schlosser committed Jul 28, 2015
1 parent 131ae24 commit 8a47082
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/ParseSentencesSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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"]
}
];

Expand Down

0 comments on commit 8a47082

Please sign in to comment.