-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use stderr.golden instead of stderr.golden.py
Signed-off-by: peefy <xpf6677@163.com>
- Loading branch information
Showing
755 changed files
with
3,334 additions
and
7,927 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
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
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
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,6 @@ | ||
error[E3M38]: EvaluationError | ||
--> ${CWD}/main.k:1:1 | ||
| | ||
1 | assert False | ||
| | ||
| |
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
error[E3M38]: EvaluationError | ||
--> ${CWD}/main.k:1:1 | ||
| | ||
1 | assert 1 == 2, '1 is not equal to 2' | ||
| 1 is not equal to 2 | ||
| |
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
error[E3M38]: EvaluationError | ||
--> ${CWD}/main.k:2:1 | ||
| | ||
2 | assert _x == "bad case", "x should be 'good case'" | ||
| x should be 'good case' | ||
| |
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
error[E3M38]: EvaluationError | ||
--> ${CWD}/main.k:3:1 | ||
| | ||
3 | assert _x == "bad case" if _x, "x should be 'good case'" | ||
| x should be 'good case' | ||
| |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
sample content | ||
sample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample contentsample content |
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
append() requires 'filepath' argument | ||
error[E3M38]: EvaluationError | ||
--> ${CWD}/main.k:5:1 | ||
| | ||
5 | file.append("", "sample content without path") | ||
| Failed to open or create file '': No such file or directory (os error 2) | ||
| |
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
cp: failed to copy 'source.txt' to 'destination.txt': No such file or directory | ||
error[E3M38]: EvaluationError | ||
--> ${CWD}/main.k:3:1 | ||
| | ||
3 | file.cp("source.txt", "destination.txt") | ||
| Failed to copy from 'source.txt' to 'destination.txt': No such file or directory (os error 2) | ||
| |
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
delete: failed to delete 'test_dir': No such file or directory | ||
error[E3M38]: EvaluationError | ||
--> ${CWD}/main.k:3:1 | ||
| | ||
3 | file.delete("test_dir") | ||
| failed to delete 'test_dir': No such file or directory (os error 2) | ||
| |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import file | ||
|
||
file.mkdir("test_dir") | ||
a = 1 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
|
||
a: 1 |
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
mv: failed to move 'source.txt' to 'destination.txt': No such file or directory | ||
error[E3M38]: EvaluationError | ||
--> ${CWD}/main.k:3:1 | ||
| | ||
3 | file.mv("source.txt", "destination.txt") | ||
| Failed to move 'source.txt' to 'destination.txt': No such file or directory (os error 2) | ||
| |
Empty file.
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
size: failed to get size of 'source_file.txt': No such file or directory | ||
error[E3M38]: EvaluationError | ||
--> ${CWD}/main.k:3:1 | ||
| | ||
3 | file.size("source_file.txt") | ||
| failed to get size of 'source_file.txt': No such file or directory (os error 2) | ||
| |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import file | ||
|
||
file.write("test_file.txt", "Hello, world!") | ||
file.write("test_file.txt", "Hello, world!") | ||
a = 1 |
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 @@ | ||
a: 1 |
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,6 @@ | ||
error[E2G22]: TypeError | ||
--> ${CWD}/main.k:2:5 | ||
| | ||
2 | b = 1 + None | ||
| ^ unsupported operand type(s) for +: 'int(1)' and 'NoneType' | ||
| |
21 changes: 0 additions & 21 deletions
21
test/grammar/builtins/operator/operator_fail_0/stderr.golden.py
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
error[E2G22]: TypeError | ||
--> ${CWD}/main.k:2:5 | ||
| | ||
2 | b = None + 1 | ||
| ^ unsupported operand type(s) for +: 'NoneType' and 'int(1)' | ||
| |
22 changes: 0 additions & 22 deletions
22
test/grammar/builtins/operator/operator_fail_1/stderr.golden.py
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
error[E2G22]: TypeError | ||
--> ${CWD}/main.k:2:5 | ||
| | ||
2 | b = 1 + a | ||
| ^ unsupported operand type(s) for +: 'int(1)' and '[int | {str:str}]' | ||
| |
Oops, something went wrong.