mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
add failing tests
This commit is contained in:
parent
bfe219f307
commit
d87b5bfd9f
2 changed files with 23 additions and 3 deletions
|
@ -380,7 +380,7 @@ fn can_annotation_help(
|
|||
}
|
||||
},
|
||||
|
||||
Record { fields, ext } => {
|
||||
Record { fields, ext, .. } => {
|
||||
let field_types = can_assigned_fields(
|
||||
env,
|
||||
fields,
|
||||
|
@ -408,7 +408,7 @@ fn can_annotation_help(
|
|||
|
||||
Type::Record(field_types, Box::new(ext_type))
|
||||
}
|
||||
TagUnion { tags, ext } => {
|
||||
TagUnion { tags, ext, .. } => {
|
||||
let tag_types = can_tags(
|
||||
env,
|
||||
tags,
|
||||
|
|
|
@ -781,6 +781,26 @@ mod test_fmt {
|
|||
);
|
||||
}
|
||||
|
||||
// // TODO This raises a parse error:
|
||||
// // NotYetImplemented("TODO the : in this declaration seems outdented")
|
||||
// #[test]
|
||||
// fn comments_in_record_annotation() {
|
||||
// expr_formats_to(
|
||||
// indoc!(
|
||||
// r#"
|
||||
// f :
|
||||
// {}
|
||||
|
||||
// f"#
|
||||
// ),
|
||||
// indoc!(
|
||||
// r#"
|
||||
// f : b {}
|
||||
// f"#
|
||||
// ),
|
||||
// );
|
||||
// }
|
||||
|
||||
#[test]
|
||||
fn def_closure() {
|
||||
expr_formats_same(indoc!(
|
||||
|
@ -2287,7 +2307,7 @@ mod test_fmt {
|
|||
));
|
||||
}
|
||||
|
||||
// This raises a parse error:
|
||||
// TODO This raises a parse error:
|
||||
// NotYetImplemented("TODO the : in this declaration seems outdented")
|
||||
// #[test]
|
||||
// fn multiline_tag_union_annotation() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue