#891 Fix tests
This commit is contained in:
1 parent
ab1cad0cbf
commit
39535bbd77
2 files changed
+8
-6
No files matched your search
@@ -179,7 +179,9 @@ mod test {
|
||||
|
||||
#[test]
|
||||
fn test() {
|
||||
assert_eq!(parse("(0"), Esc::Code(EscCode::DecLineDrawing));
|
||||
assert_eq!(parse("(B"), Esc::Code(EscCode::AsciiCharacterSet));
|
||||
assert_eq!(parse("(0"), Esc::Code(EscCode::DecLineDrawingG0));
|
||||
assert_eq!(parse("(B"), Esc::Code(EscCode::AsciiCharacterSetG0));
|
||||
assert_eq!(parse(")0"), Esc::Code(EscCode::DecLineDrawingG1));
|
||||
assert_eq!(parse(")B"), Esc::Code(EscCode::AsciiCharacterSetG1));
|
||||
}
|
||||
}
|
||||
@@ -888,7 +888,7 @@ mod test {
|
||||
Action::Print('o'),
|
||||
Action::Print('t'),
|
||||
Action::Print(' '),
|
||||
Action::Esc(Esc::Code(EscCode::AsciiCharacterSet)),
|
||||
Action::Esc(Esc::Code(EscCode::AsciiCharacterSetG0)),
|
||||
Action::CSI(CSI::Sgr(Sgr::Reset)),
|
||||
Action::CSI(CSI::Sgr(Sgr::Intensity(Intensity::Bold))),
|
||||
Action::Print('f'),
|
||||
@@ -1069,7 +1069,7 @@ mod test {
|
||||
assert_eq!(
|
||||
result,
|
||||
vec![
|
||||
Action::Esc(Esc::Code(EscCode::AsciiCharacterSet)),
|
||||
Action::Esc(Esc::Code(EscCode::AsciiCharacterSetG0)),
|
||||
Action::CSI(CSI::Sgr(Sgr::Reset)),
|
||||
// Note that the render code rearranges (red,bold) to (bold,red)
|
||||
Action::CSI(CSI::Sgr(Sgr::Intensity(Intensity::Bold))),
|
||||
@@ -1141,7 +1141,7 @@ mod test {
|
||||
assert_eq!(
|
||||
result,
|
||||
vec![
|
||||
Action::Esc(Esc::Code(EscCode::AsciiCharacterSet)),
|
||||
Action::Esc(Esc::Code(EscCode::AsciiCharacterSetG0)),
|
||||
Action::CSI(CSI::Sgr(Sgr::Reset)),
|
||||
// Note that the render code rearranges (red,bold) to (bold,red)
|
||||
Action::CSI(CSI::Sgr(Sgr::Intensity(Intensity::Bold))),
|
||||
@@ -1150,7 +1150,7 @@ mod test {
|
||||
Action::Print('e'),
|
||||
Action::Print('d'),
|
||||
// Turning off bold is translated into reset and set red again
|
||||
Action::Esc(Esc::Code(EscCode::AsciiCharacterSet)),
|
||||
Action::Esc(Esc::Code(EscCode::AsciiCharacterSetG0)),
|
||||
Action::CSI(CSI::Sgr(Sgr::Reset)),
|
||||
Action::CSI(CSI::Sgr(Sgr::Foreground(AnsiColor::Maroon.into()))),
|
||||
Action::Print('2'),
|
||||
|
||||
Reference in new issue
Block a user