From 77d1236720fd6b1bc191e2328ab66a7035db4305 Mon Sep 17 00:00:00 2001 From: MultisampledNight Date: Thu, 11 Jan 2024 12:27:38 +0100 Subject: [PATCH] test: prettify TEST_DATA over multiple lines --- crates/rpl/src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/rpl/src/lib.rs b/crates/rpl/src/lib.rs index 6290fb2..0e5011e 100644 --- a/crates/rpl/src/lib.rs +++ b/crates/rpl/src/lib.rs @@ -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),