From 77d18e9d3738d616ab64faf48876e98dc0538024 Mon Sep 17 00:00:00 2001 From: Alex Badics Date: Fri, 2 Sep 2022 23:00:56 +0200 Subject: [PATCH] serialization: test long strings and update serde_yaml See https://github.com/dtolnay/serde-yaml/issues/321 --- Cargo.toml | 2 +- tests/simple_tests/test_serialization.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c0d0bb8..2d1ec3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ regex = "1" roman = "0.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -serde_yaml = "0.9" +serde_yaml = "0.9.11" tempfile = "3" ureq = "2.4" diff --git a/tests/simple_tests/test_serialization.rs b/tests/simple_tests/test_serialization.rs index b74bc59..17406a0 100644 --- a/tests/simple_tests/test_serialization.rs +++ b/tests/simple_tests/test_serialization.rs @@ -70,7 +70,7 @@ fn get_test_act() -> Act { children: vec![ Paragraph { identifier: Some(1.into()), - body: "Valami valami".into(), + body: "Valami valami hosszu szoveg csak azert hogy leteszteljuk hogy a yaml szerializacio mennyire nez ki jol igy. Remelhetoleg nem tori tobb sorba.".into(), semantic_info: Default::default(), }, Paragraph { @@ -218,7 +218,7 @@ children: identifier: 1:2 children: - identifier: '1' - body: Valami valami + body: Valami valami hosszu szoveg csak azert hogy leteszteljuk hogy a yaml szerializacio mennyire nez ki jol igy. Remelhetoleg nem tori tobb sorba. - identifier: '2' body: intro: Egy felsorolás legyen