1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
azalea/minecraft-chat/tests/integration_test.rs
mat 221e54c7a6 Implement more stuff with chat
Still need to parse styling from json
2021-12-09 00:51:52 -06:00

15 lines
333 B
Rust

use minecraft_chat::component::Component;
use serde_json::{Result, Value};
#[test]
fn test() {
let j: Value = serde_json::from_str(
r#"{
"text": "hello",
"color": "red"
}"#,
)
.unwrap();
let component = Component::new(&j).unwrap();
println!("println: {}", component.to_ansi(None));
}