-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix tests for check that compares declarations and file extensi…
…on (#568) ### Summary of Changes For the test files that compare the declarations in a module with the file extension: * Fix file extension * Fix expected message
- Loading branch information
1 parent
2803305
commit 48b5f53
Showing
3 changed files
with
43 additions
and
10 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
File renamed without changes.
33 changes: 33 additions & 0 deletions
33
...n/other/modules/declarations in test files/everything is allowed (no stub errors).sdstest
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package tests.validation.other.modules.declarationsInTestFiles | ||
|
||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
pipeline »myPipeline« {} | ||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
segment »mySegment«() {} | ||
|
||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
annotation »MyAnnotation« | ||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
class »MyClass« { | ||
|
||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
attr »a«: Int | ||
|
||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
class »MyNestedClass« | ||
|
||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
enum »MyEnum« | ||
|
||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
fun »myFunction«() | ||
} | ||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
enum »MyEnum« { | ||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
»MyEnumInstance« | ||
} | ||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
fun »myFunction«() | ||
// $TEST$ no error "A stub file must not declare pipelines or segments." | ||
schema »MySchema« {} |