Skip to content

Commit 3c6dda3

Browse files
committed
test fixes
1 parent 746c70c commit 3c6dda3

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/sql_test_files/it_works_sqrt.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ set number_three = sqrt(9.0);
33
select 'text' as component,
44
case $number_three
55
when '3.0' then 'It works !'
6+
when '3' then 'It works !'
67
else 'error: ' || coalesce($number_three, 'NULL')
78
end AS contents;

tests/sql_test_files/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fn assert_it_works_tests(body: &str, lowercase_body: &str, test_file: &std::path
153153

154154
assert!(
155155
body.contains("It works !"),
156-
"{body}\n❌ Error in file {test_file:?} ❌\n",
156+
"{body}\n❌ Error in file {test_file:?} ❌\nShould contain: 'It works !'",
157157
);
158158
assert!(
159159
!lowercase_body.contains("error"),

0 commit comments

Comments
 (0)