test: prettify TEST_DATA over multiple lines
This commit is contained in:
parent
ad4041d1f2
commit
1505a58a53
1 changed files with 7 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue