Skip to content

Commit

Permalink
Update naming convention for tokenization tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sungshik committed Jul 9, 2024
1 parent f57725f commit 5bbe142
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ bool doAnalyzeTest(RscGrammar rsc, list[ConversionUnit] expect, bool printActual
}

bool doTransformTest(list[ConversionUnit] units, RepositoryStats expect, str name = "") {
TmGrammar tm = transform(units)[scopeName = "source.<name>"];
TmGrammar tm = transform(units)[scopeName = "<name>"];
Repository repo = tm.repository;
list[TmRule] pats = tm.patterns;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ list[ConversionUnit] units = [
];

test bool analyzeTest() = doAnalyzeTest(rsc, units);
test bool transformTest() = doTransformTest(units, <3, 0, 0>, name = "emoji");
test bool transformTest() = doTransformTest(units, <3, 0, 0>, name = "Emoji");
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ list[ConversionUnit] units = [
];

test bool analyzeTest() = doAnalyzeTest(rsc, units);
test bool transformTest() = doTransformTest(units, <3, 0, 0>, name = "pico");
test bool transformTest() = doTransformTest(units, <3, 0, 0>, name = "Pico");
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SYNTAX TEST "source.emoji"
# SYNTAX TEST "Emoji"

🌊
# <-- constant.language
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SYNTAX TEST "source.pico"
# SYNTAX TEST "Pico"

%% foo bar
# <-- Comment
Expand Down

0 comments on commit 5bbe142

Please sign in to comment.