Skip to content

Commit 31c665b

Browse files
committed
add tests
Signed-off-by: lubegasimon <[email protected]>
1 parent d30dd80 commit 31c665b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parser/test.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,12 +690,15 @@ let tests : test_suite list =
690690
] );
691691
( "reference-component-kind",
692692
[
693+
t "no-kind-with-quotes" "{!\"foo\".\"bar\"}";
693694
t "no-kind" "{!foo}";
694695
t "class" "{!class-foo}";
695696
t "class-type" "{!class-type-foo}";
696697
t "class-type-alt" "{!classtype-foo}";
697698
t "constructor" "{!constructor-Foo}";
698699
t "constructor-alt" "{!const-Foo}";
700+
t "dash-in-page-name" "{!page-\"foo-bar\"}";
701+
t "dot-and-dash-in-page-name" "{!page-\"foo-bar.v0.0.1\"}";
699702
t "exception" "{!exception-Foo}";
700703
t "exception-alt" "{!exn-Foo}";
701704
t "extension" "{!extension-Foo}";
@@ -704,6 +707,7 @@ let tests : test_suite list =
704707
t "heading" "{!section-foo}";
705708
t "heading-alt" "{!label-foo}";
706709
t "instance-variable" "{!instance-variable-foo}";
710+
t "kind-with-quotes" "{!module-type-\"Bar\".module-\"Moo\".class-\"There\"}";
707711
t "method" "{!method-foo}";
708712
t "module" "{!module-Foo}";
709713
t "module-type" "{!module-type-Foo}";
@@ -998,6 +1002,7 @@ let tests : test_suite list =
9981002
t "canonical-empty-name" "@canonical Foo.";
9991003
t "internal-whitespace" "{!foo. bar .baz}";
10001004
t "replacement-text-empty-identifier" "{{!val-} foo}";
1005+
t "reference-with-unmatched-quotation" "{!\"\"foo\"}";
10011006
] );
10021007
( "bad-markup",
10031008
[

0 commit comments

Comments
 (0)