diff options
| author | mat <github@matdoes.dev> | 2021-12-11 11:38:12 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-11 11:38:12 -0600 |
| commit | 6026c74430f311c9217b77e7ac07d183efde5bce (patch) | |
| tree | 1d20fc2794e69e4ebb56aa1e9dd43503c39a4144 /minecraft-chat/tests | |
| parent | 5039f9668f3512240af22ac6bb49140012885509 (diff) | |
| download | azalea-drasl-6026c74430f311c9217b77e7ac07d183efde5bce.tar.xz | |
add legacy color codes
Diffstat (limited to 'minecraft-chat/tests')
| -rw-r--r-- | minecraft-chat/tests/integration_test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/minecraft-chat/tests/integration_test.rs b/minecraft-chat/tests/integration_test.rs index 1a010a13..3feff1ed 100644 --- a/minecraft-chat/tests/integration_test.rs +++ b/minecraft-chat/tests/integration_test.rs @@ -2,7 +2,7 @@ use minecraft_chat::{ component::Component, style::{Ansi, ChatFormatting, TextColor}, }; -use serde_json::{Value}; +use serde_json::Value; #[test] fn basic_ansi_test() { @@ -17,7 +17,7 @@ fn basic_ansi_test() { let component = Component::new(&j).unwrap(); assert_eq!( component.to_ansi(), - "\x1b[1m\x1b[38;2;255;85;85mhello\x1b[m" + "\u{1b}[1m\u{1b}[38;2;255;85;85mhello\u{1b}[m" ); } |
