Module params record parse problem test

This commit is contained in:
Agus Zubiaga 2024-05-09 07:45:33 -03:00
parent 25d3cae08f
commit 9be3358355
No known key found for this signature in database

View file

@ -4943,6 +4943,24 @@ mod test_reporting {
"###
);
test_report!(
weird_import_params_record,
indoc!(
r"
import Menu { x = 4 }
"
),@r###"
RECORD PARSE PROBLEM in tmp/weird_import_params_record/Test.roc
I am partway through parsing a record, but I got stuck here:
4 import Menu { x = 4 }
^
TODO provide more context.
"###
);
test_report!(
unfinished_import_as_or_exposing,
indoc!(