From 9f8c484572f9b13b77e5b2a564fcfc699706231a Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Tue, 6 Dec 2022 20:37:40 +0800 Subject: [PATCH] test: tests module of to-json --- src/to-json/tests/convert.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/to-json/tests/convert.rs diff --git a/src/to-json/tests/convert.rs b/src/to-json/tests/convert.rs new file mode 100644 index 0000000..59da73e --- /dev/null +++ b/src/to-json/tests/convert.rs @@ -0,0 +1,23 @@ +const JSON_TEST_CONTENT: &str = r#" +{ + "int": 123, + "float": 2.3333, + "string": "dnomd343", + "array": [1, 2, 3, 4, 5], + "dict": { + "test": "demo" + } +} +"#; + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn json_to_json() { + println!("{}", JSON_TEST_CONTENT); + assert_eq!(1, 2); + } + +}