Merge pull request #4589 from roc-lang/fix-test

Fix test
This commit is contained in:
Richard Feldman 2022-11-24 17:56:45 -05:00 committed by GitHub
commit 917eb898fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,