Skip to content

Commit

Permalink
Highlight some edge cases in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tizot committed Nov 20, 2022
1 parent 63500c9 commit 0b10d59
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/regex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ describe("Regex class unit tests", () => {
type Match = [string, string];

const candidates: [string, Match[]][] = [
["#Question :: Answer", [["Question", "Answer"]]],
["Question :: Answer", [["Question", "Answer"]]],
// FIXME: should be "Question" instead of " Question"
// ["# Question :: Answer", [[" Question", "Answer"]]],
// FIXME: should not match? (tag then separator)
// ["#Question :: Answer", []],
["Answer ::: Question", [["Answer", "Question"]]],
["Question :: Answer ^123456789", [["Question", "Answer ^123456789"]]],
["Question :: Answer ^123456789\n^123456789", [["Question", "Answer ^123456789"]]],
Expand Down Expand Up @@ -66,7 +70,7 @@ describe("Regex class unit tests", () => {
[" Item 2b", "Bb"],
],
],
// FIXME: should not match
// FIXME: should not match?
// ["no :::: match", []],
["2000 :: answer", [["2000", "answer"]]],
];
Expand Down

0 comments on commit 0b10d59

Please sign in to comment.