-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Improve comment handling testing
The previous test/parsing/comment* files were too simple. Now I've added corner cases, bug raising samples (using ";", see issues #49 and #50) and a more complete coverage.
- Loading branch information
1 parent
db438d4
commit cc48068
Showing
12 changed files
with
1,372 additions
and
145 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,36 @@ | ||
PATT:one$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:one$ | ||
HOLD:$ | ||
one | ||
PATT:two$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:two$ | ||
HOLD:$ | ||
two | ||
PATT:three$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:three$ | ||
HOLD:$ | ||
three | ||
PATT:four$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:four$ | ||
HOLD:$ | ||
four | ||
PATT:five$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:five$ | ||
HOLD:$ | ||
five | ||
PATT:six$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:six$ | ||
HOLD:$ | ||
six |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,36 @@ | ||
PATT:one$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:one$ | ||
HOLD:$ | ||
one | ||
PATT:two$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:two$ | ||
HOLD:$ | ||
two | ||
PATT:three$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:three$ | ||
HOLD:$ | ||
three | ||
PATT:four$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:four$ | ||
HOLD:$ | ||
four | ||
PATT:five$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:five$ | ||
HOLD:$ | ||
five | ||
PATT:six$ | ||
HOLD:$ | ||
COMM:[33;1m/bla/ {[m | ||
COMM:[33;1ms///[m | ||
COMM:[33;1m/foo/ {[m | ||
PATT:six$ | ||
HOLD:$ | ||
six |
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
Oops, something went wrong.