Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
added test for unbreakable spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bdavidxyz committed Feb 28, 2017
1 parent a36fc57 commit df77c46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/tests/unit/domain/services/solution-service_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ describe('Unit | Service | SolutionService', function () {
answer: 'num1: Google\nnum2: Yahoo',
solution: twoPossibleSolutions
},
{
when: 'Both answers are correct with 2 solutions, and there are unbreakable spaces in both answers',
answer: 'num1: G o o g l e  \nnum2:  Y a h o o ',
solution: twoPossibleSolutions
},
{
when: 'Both answers are correct, and solutions contains spaces everywhere',
answer: 'num1: Google\nnum2: Yahoo',
Expand Down

0 comments on commit df77c46

Please sign in to comment.