Add reproducer for bug that's fixed now

Closes #5140
This commit is contained in:
Ayaz Hafiz 2023-04-12 10:10:22 -05:00
parent 191d8a7408
commit 65ba472646
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -1180,4 +1180,36 @@ mod test {
),
);
}
#[test]
fn tuple_access() {
run_expect_test(
indoc!(
r#"
interface Test exposes [] imports []
expect
t = ("One", "Two")
t.1 == "One"
"#
),
indoc!(
r#"
This expectation failed:
3> expect
4> t = ("One", "Two")
5> t.1 == "One"
When it failed, these variables had these values:
t : (
Str,
Str,
)a
t = ("One", "Two")
"#
),
);
}
}