mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
parent
191d8a7408
commit
65ba472646
1 changed files with 32 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue