Skip to content

Commit

Permalink
[fix] broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealLorenz authored and uttarayan21 committed Feb 12, 2024
1 parent cc377fc commit e13c95b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,10 @@ fn test_unicode() {
#[test]
fn test_ascii_rgb() {
let bytes: Vec<u8> = b"\x1b[38;2;100;100;100mAAABBB".to_vec();
let output = Ok(Text::styled(
let output = Ok(Text::from(Span::styled(
"AAABBB",
Style {
fg: Some(Color::Rgb(100, 100, 100)),
..Default::default()
},
));
Style::default().fg(Color::Rgb(100, 100, 100)),
)));
assert_eq!(bytes.into_text(), output);
}

Expand Down

0 comments on commit e13c95b

Please sign in to comment.