From 6026c74430f311c9217b77e7ac07d183efde5bce Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 11 Dec 2021 11:38:12 -0600 Subject: add legacy color codes --- minecraft-chat/tests/integration_test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'minecraft-chat/tests') 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" ); } -- cgit v1.2.3