From bda5362bdf5331c77fdd8f36fae003853dd34bba Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 8 Dec 2021 22:10:07 +0000 Subject: [PATCH] add basic test --- minecraft-chat/tests/integration_test.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 minecraft-chat/tests/integration_test.rs diff --git a/minecraft-chat/tests/integration_test.rs b/minecraft-chat/tests/integration_test.rs new file mode 100644 index 00000000..46e18457 --- /dev/null +++ b/minecraft-chat/tests/integration_test.rs @@ -0,0 +1,13 @@ +use minecraft_chat::component::Component; +use serde_json::{Result, Value}; + +#[test] +fn test() { + let j: Value = serde_json::from_str( + r#"{ + "text":"hello" + }"#, + ) + .unwrap(); + let component = Component::new(&j).unwrap(); +}