mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
commit
917eb898fc
1 changed files with 8 additions and 8 deletions
|
@ -447,7 +447,7 @@ fn optional_field_when_use_default_nested() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
fn optional_field_when_no_use_default() {
|
fn optional_field_destructure_module() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
|
@ -468,15 +468,15 @@ fn optional_field_when_no_use_default() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
fn optional_field_when_no_use_default_nested() {
|
fn optional_field_destructure_expr() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
f = \r ->
|
fn = \r ->
|
||||||
{ x ? 10, y } = r
|
{ x ? 10, y } = r
|
||||||
x + y
|
x + y
|
||||||
|
|
||||||
f { x: 4, y: 9 }
|
fn { x: 4, y: 9 }
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
13,
|
13,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue