A couple hacks to get deriving of records working.. but it's working?

This commit is contained in:
Ayaz Hafiz 2022-07-08 11:24:06 -04:00
parent 801803d813
commit 63adb901b4
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
8 changed files with 156 additions and 104 deletions

View file

@ -427,9 +427,8 @@ fn encode_derived_string() {
}
#[test]
#[ignore]
#[cfg(any(feature = "gen-llvm"))]
fn encode_derived_record() {
fn encode_derived_record_one_field_string() {
assert_evals_to!(
indoc!(
r#"
@ -444,7 +443,7 @@ fn encode_derived_record() {
_ -> "<bad>"
"#
),
RocStr::from("foo"),
RocStr::from(r#"{"a":"foo",}"#),
RocStr
)
}