mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 18:58:24 +03:00
parent
191d8a7408
commit
65ba472646
@ -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")
|
||||
"#
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user