stop escaping roc panic strings in the llvm helpers

This commit is contained in:
Folkert 2022-07-14 20:08:03 +02:00
parent 9f80aa4df7
commit 291b77c83b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 3 additions and 28 deletions

View file

@ -1038,28 +1038,8 @@ fn different_proc_types_specialized_to_same_layout() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[should_panic(
// TODO: something upstream is escaping the '
// NOTE: Are we sure it's upstream? It's not escaped in gen-wasm version below!
expected = r#"Roc failed with message: "Can\'t create record with improper layout""#
)]
fn call_with_bad_record_runtime_error() {
expect_runtime_error_panic!(indoc!(
r#"
app "test" provides [main] to "./platform"
main =
get : {a: Bool} -> Bool
get = \{a} -> a
get {b: ""}
"#
))
}
#[test]
#[cfg(any(feature = "gen-wasm"))]
#[should_panic(expected = r#"Roc failed with message: "Can't create record with improper layout"#)]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
#[should_panic(expected = r#"Roc failed with message: "Can't create record with improper layout""#)]
fn call_with_bad_record_runtime_error() {
expect_runtime_error_panic!(indoc!(
r#"