mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-11-21 21:24:41 +01:00
test: prettify TEST_DATA over multiple lines
This commit is contained in:
parent
5bf277cf14
commit
77d1236720
|
@ -25,8 +25,13 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_simple_deserialize() {
|
fn test_simple_deserialize() {
|
||||||
const TEST_DATA: &str =
|
const TEST_DATA: &str = concat!(
|
||||||
"([Read( (source: File(\"~/example/file.png\"), format: Png) ),Math(Add),Write(( target: File(\"~/example/out.jpg\"), format: Jpeg))])";
|
"([",
|
||||||
|
"Read( (source: File(\"~/example/file.png\"), format: Png) ),",
|
||||||
|
"Math(Add),",
|
||||||
|
"Write(( target: File(\"~/example/out.jpg\"), format: Jpeg)),",
|
||||||
|
"])",
|
||||||
|
);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
from_ron(TEST_DATA),
|
from_ron(TEST_DATA),
|
||||||
|
|
Loading…
Reference in a new issue