diff options
| author | mat <github@matdoes.dev> | 2021-12-08 22:10:07 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-08 22:10:07 +0000 |
| commit | bda5362bdf5331c77fdd8f36fae003853dd34bba (patch) | |
| tree | b76b7527e15d778a1eb2981f7f1d39caf7bfa9ee /minecraft-chat | |
| parent | 8bc1fd23991539eb8b01fc940b1219786ae5f32b (diff) | |
| download | azalea-drasl-bda5362bdf5331c77fdd8f36fae003853dd34bba.tar.xz | |
add basic test
Diffstat (limited to 'minecraft-chat')
| -rw-r--r-- | minecraft-chat/tests/integration_test.rs | 13 |
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(); +} |
