Skip to content

Commit

Permalink
test: Add a bad error msg to track list (#2876)
Browse files Browse the repository at this point in the history
  • Loading branch information
khoa165 authored Jun 21, 2023
1 parent de035d7 commit 66fd004
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions prql-compiler/src/tests/test_bad_error_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ fn test_bad_error_messages() {
│ Note: Type `relation` expands to `[tuple_of_scalars]`
───╯
"###);

// It's better if we can tell them to put in {} braces
assert_display_snapshot!(compile(r###"
from artists
sort -name
"###).unwrap_err(), @r###"
Error:
╭─[:3:11]
3 │ sort -name
│ ──┬─
│ ╰─── Unknown name
───╯
"###);
}

#[test]
Expand Down

0 comments on commit 66fd004

Please sign in to comment.