aboutsummaryrefslogtreecommitdiff
path: root/minecraft-chat/tests
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-08 22:10:07 +0000
committermat <github@matdoes.dev>2021-12-08 22:10:07 +0000
commitbda5362bdf5331c77fdd8f36fae003853dd34bba (patch)
treeb76b7527e15d778a1eb2981f7f1d39caf7bfa9ee /minecraft-chat/tests
parent8bc1fd23991539eb8b01fc940b1219786ae5f32b (diff)
downloadazalea-drasl-bda5362bdf5331c77fdd8f36fae003853dd34bba.tar.xz
add basic test
Diffstat (limited to 'minecraft-chat/tests')
-rw-r--r--minecraft-chat/tests/integration_test.rs13
1 files changed, 13 insertions, 0 deletions
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();
+}