Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Dec 28, 2024
1 parent 5c4e48e commit dae67be
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/Parsing/Negative.hs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ filesErrorTests =
$ \case
ErrWrongTopModuleName {} -> Nothing
_ -> wrongError,
negTest
"Incorrect top module path (markdown)"
$(mkRelDir "issue2674")
$(mkRelFile "Main.juvix.md")
$ \case
ErrWrongTopModuleName {} -> Nothing
_ -> wrongError,
negTestAbsDir
"Incorrect top module path of an orphan file."
(relToProject $(mkRelDir "tests/WithoutPackageFile"))
Expand Down
3 changes: 3 additions & 0 deletions tests/positive/issue2674/Main.juvix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```juvix
module X;
```
8 changes: 8 additions & 0 deletions tests/positive/issue2674/Package.juvix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module Package;

import PackageDescription.V2 open;

package : Package :=
defaultPackage@{
name := "issue2674";
};

0 comments on commit dae67be

Please sign in to comment.