mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Turn a couple more solve tests back on
This commit is contained in:
parent
41eb3ad9a4
commit
1976e435a0
1 changed files with 3 additions and 9 deletions
|
@ -6510,7 +6510,6 @@ mod solve_expr {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore = "TODO: fix unification of derived types"]
|
|
||||||
fn encode_record() {
|
fn encode_record() {
|
||||||
infer_queries!(
|
infer_queries!(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
@ -6523,14 +6522,11 @@ mod solve_expr {
|
||||||
# ^^^^^^^^^
|
# ^^^^^^^^^
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
@r#"
|
@"Encoding#toEncoder(2) : { a : Str } -[[#Derived.toEncoder_{a}(0)]]-> Encoder fmt | fmt has EncoderFormatting"
|
||||||
"Encoding#toEncoder(2) : { a : Str } -[[#Derived.toEncoder_{a}(0)]]-> Encoder fmt | fmt has EncoderFormatting",
|
|
||||||
"#
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore = "TODO: fix unification of derived types"]
|
|
||||||
fn encode_record_with_nested_custom_impl() {
|
fn encode_record_with_nested_custom_impl() {
|
||||||
infer_queries!(
|
infer_queries!(
|
||||||
indoc!(
|
indoc!(
|
||||||
|
@ -6539,16 +6535,14 @@ mod solve_expr {
|
||||||
imports [Encode.{ toEncoder, Encoding, custom }]
|
imports [Encode.{ toEncoder, Encoding, custom }]
|
||||||
provides [main] to "./platform"
|
provides [main] to "./platform"
|
||||||
|
|
||||||
A := {}
|
A := {} has [Encoding {toEncoder}]
|
||||||
toEncoder = \@A _ -> custom \b, _ -> b
|
toEncoder = \@A _ -> custom \b, _ -> b
|
||||||
|
|
||||||
main = toEncoder { a: @A {} }
|
main = toEncoder { a: @A {} }
|
||||||
# ^^^^^^^^^
|
# ^^^^^^^^^
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
@r#"
|
@"Encoding#toEncoder(2) : { a : A } -[[#Derived.toEncoder_{a}(0)]]-> Encoder fmt | fmt has EncoderFormatting"
|
||||||
"Encoding#toEncoder(2) : { a : A } -[[#Derived.toEncoder_{a}(0)]]-> Encoder fmt | fmt has EncoderFormatting",
|
|
||||||
"#
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue