Skip to content

Commit

Permalink
feat(tests): migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Jul 3, 2024
1 parent 77faefa commit bd4e469
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tests/stdlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn amber_test(input: &str) {
.expect(&format!("Failed to open {input} test file"));

let output = fs::read_to_string(input.replace(".ab", ".output.txt"))
.expect(&format!("Failed to open *output.txt file"));
.expect(&format!("Failed to open {input}.output.txt file"));

test_amber!(code, output);
}
Expand Down
2 changes: 1 addition & 1 deletion src/tests/stdlib/includes_empty_text_array.output.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Not Found
Found
2 changes: 1 addition & 1 deletion src/tests/stdlib/includes_text_array.ab
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * from "std"

main {
let array = ["apple", "banana cherry"]
let array = ["apple", "banana", "cherry"]
if includes(array, "banana") {
echo "Found"
} else {
Expand Down

0 comments on commit bd4e469

Please sign in to comment.