add test for declaration errors
This commit is contained in:
35
tests/scryer/cli/src_tests/declaration_errors.md
Normal file
35
tests/scryer/cli/src_tests/declaration_errors.md
Normal file
@@ -0,0 +1,35 @@
|
||||
```trycmd
|
||||
$ scryer-prolog -f --no-add-history tests-pl/invalid_decl1.pl -g halt
|
||||
error(syntax_error(inconsistent_entry),load/1).
|
||||
|
||||
```
|
||||
|
||||
```trycmd
|
||||
$ scryer-prolog -f --no-add-history tests-pl/invalid_decl2.pl -g halt
|
||||
error(syntax_error(inconsistent_entry),load/1).
|
||||
|
||||
```
|
||||
|
||||
```trycmd
|
||||
$ scryer-prolog -f --no-add-history tests-pl/invalid_decl3.pl -g halt
|
||||
error(syntax_error(inconsistent_entry),load/1).
|
||||
|
||||
```
|
||||
|
||||
```trycmd
|
||||
$ scryer-prolog -f --no-add-history tests-pl/invalid_decl4.pl -g halt
|
||||
error(syntax_error(inconsistent_entry),load/1).
|
||||
|
||||
```
|
||||
|
||||
```trycmd
|
||||
$ scryer-prolog -f --no-add-history tests-pl/invalid_decl5.pl -g halt
|
||||
error(syntax_error(inconsistent_entry),load/1).
|
||||
|
||||
```
|
||||
|
||||
```trycmd
|
||||
$ scryer-prolog -f --no-add-history tests-pl/invalid_decl6.pl -g halt
|
||||
error(syntax_error(inconsistent_entry),load/1).
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user