Skip to content

Commit

Permalink
ansi: add plain text test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Oct 20, 2024
1 parent 8ea6c90 commit 871ca89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ansi2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,15 @@ impl Canvas {
mod test {
use crate::{lex::parse_ansi, Canvas};
use insta::assert_debug_snapshot;
#[test]
fn test_plain() {
let s = "ansi";
let r = parse_ansi(s).unwrap();
assert_debug_snapshot!(r);

let canvas = Canvas::new(s, None);
assert_debug_snapshot!(canvas);
}

#[test]
fn test() {
Expand Down

0 comments on commit 871ca89

Please sign in to comment.