Skip to content

Commit

Permalink
[fix] Fix the tests for zero-copy version
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Feb 15, 2024
1 parent df9b66e commit 5b1ac56
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/tests.rs
Expand Up @@ -189,13 +189,10 @@ mod zero_copy {
#[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.to_text(), output);
}

Expand Down

0 comments on commit 5b1ac56

Please sign in to comment.