test: prettify TEST_DATA over multiple lines

This commit is contained in:
multisn8 2024-01-11 12:27:38 +01:00
parent 3a013f4df1
commit ee149c212c
Signed by: multisamplednight
GPG key ID: C81EF9B053977241

View file

@ -25,8 +25,13 @@ mod tests {
#[test]
fn test_simple_deserialize() {
const TEST_DATA: &str =
"([Read( (source: File(\"~/example/file.png\"), format: Png) ),Math(Add),Write(( target: File(\"~/example/out.jpg\"), format: Jpeg))])";
const TEST_DATA: &str = concat!(
"([",
"Read( (source: File(\"~/example/file.png\"), format: Png) ),",
"Math(Add),",
"Write(( target: File(\"~/example/out.jpg\"), format: Jpeg)),",
"])",
);
assert_eq!(
from_ron(TEST_DATA),