-
-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sgf-parsing: Add individual tests of escaping/whitespace behaviour
11c36323-93fc-495d-bb23-c88ee5844b8c crams too much into one test case. Split it up into multiple ones. In addition, 11c36323-93fc-495d-bb23-c88ee5844b8c has behaviour that violates the specification. The violation is that `\t` and `\n` (written as `"\\t"` and `"\\n"` in the JSON string, respectively), do not hold any sort of special significance in SGF, according to the specification: https://www.red-bean.com/sgf/sgf4.html Reimplement in 08e4b8ba-bb07-4431-a3d9-b1f4cdea6dab. The reimplemented case is mostly as it was when the exercise was originally implemented in exercism/exercism@7a5075b and the reimplemented case is in accordance with the specification. Note that the original case also got it wrong in that newlines should remain newlines; this is corrected in 08e4b8ba-bb07-4431-a3d9-b1f4cdea6dab.
- Loading branch information
1 parent
32c6d87
commit 3c6c50b
Showing
1 changed file
with
197 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters