1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-18 19:01:36 +03:00

remove test_ prefix from tests

This commit is contained in:
Wez Furlong 2018-07-19 20:55:09 -07:00
parent d37eb906b3
commit 7111f5f153
3 changed files with 16 additions and 16 deletions

View File

@ -1089,7 +1089,7 @@ mod test {
} }
#[test] #[test]
fn test_basic() { fn basic() {
assert_eq!(parse('m', &[], "\x1b[0m"), vec![CSI::Sgr(Sgr::Reset)]); assert_eq!(parse('m', &[], "\x1b[0m"), vec![CSI::Sgr(Sgr::Reset)]);
assert_eq!(parse('m', &[0], "\x1b[0m"), vec![CSI::Sgr(Sgr::Reset)]); assert_eq!(parse('m', &[0], "\x1b[0m"), vec![CSI::Sgr(Sgr::Reset)]);
assert_eq!( assert_eq!(
@ -1143,7 +1143,7 @@ mod test {
} }
#[test] #[test]
fn test_color() { fn color() {
assert_eq!( assert_eq!(
parse('m', &[38, 2], "\x1b[38;2m"), parse('m', &[38, 2], "\x1b[38;2m"),
vec![CSI::Unspecified { vec![CSI::Unspecified {

View File

@ -547,7 +547,7 @@ mod test {
} }
#[test] #[test]
fn test_empty_render() { fn empty_render() {
let mut out = FakeTerm::new(); let mut out = FakeTerm::new();
let renderer = TerminfoRenderer::new(xterm_terminfo()); let renderer = TerminfoRenderer::new(xterm_terminfo());
let end_attr = renderer let end_attr = renderer
@ -558,7 +558,7 @@ mod test {
} }
#[test] #[test]
fn test_basic_text() { fn basic_text() {
let mut out = FakeTerm::new(); let mut out = FakeTerm::new();
let renderer = TerminfoRenderer::new(xterm_terminfo()); let renderer = TerminfoRenderer::new(xterm_terminfo());
let end_attr = renderer let end_attr = renderer
@ -573,7 +573,7 @@ mod test {
} }
#[test] #[test]
fn test_bold_text() { fn bold_text() {
let mut out = FakeTerm::new(); let mut out = FakeTerm::new();
let renderer = TerminfoRenderer::new(xterm_terminfo()); let renderer = TerminfoRenderer::new(xterm_terminfo());
let end_attr = renderer let end_attr = renderer
@ -741,7 +741,7 @@ mod test {
} }
#[test] #[test]
fn test_bold_text_no_terminfo() { fn bold_text_no_terminfo() {
let mut out = FakeTerm::new(); let mut out = FakeTerm::new();
let renderer = TerminfoRenderer::new(no_terminfo_all_enabled()); let renderer = TerminfoRenderer::new(no_terminfo_all_enabled());
let end_attr = renderer let end_attr = renderer
@ -781,7 +781,7 @@ mod test {
} }
#[test] #[test]
fn test_red_bold_text() { fn red_bold_text() {
let mut out = FakeTerm::new(); let mut out = FakeTerm::new();
let renderer = TerminfoRenderer::new(xterm_terminfo()); let renderer = TerminfoRenderer::new(xterm_terminfo());
let end_attr = renderer let end_attr = renderer
@ -823,7 +823,7 @@ mod test {
} }
#[test] #[test]
fn test_red_bold_text_no_terminfo() { fn red_bold_text_no_terminfo() {
let mut out = FakeTerm::new(); let mut out = FakeTerm::new();
let renderer = TerminfoRenderer::new(no_terminfo_all_enabled()); let renderer = TerminfoRenderer::new(no_terminfo_all_enabled());
let end_attr = renderer let end_attr = renderer

View File

@ -617,7 +617,7 @@ mod test {
// it gets eaten up and ignored. // it gets eaten up and ignored.
#[test] #[test]
fn test_basic_print() { fn basic_print() {
let mut s = Screen::new(4, 3); let mut s = Screen::new(4, 3);
assert_eq!( assert_eq!(
s.screen_chars_to_string(), s.screen_chars_to_string(),
@ -660,7 +660,7 @@ mod test {
} }
#[test] #[test]
fn test_newline() { fn newline() {
let mut s = Screen::new(4, 4); let mut s = Screen::new(4, 4);
s.add_change("bloo\rwat\n hey\r\nho"); s.add_change("bloo\rwat\n hey\r\nho");
assert_eq!( assert_eq!(
@ -681,7 +681,7 @@ mod test {
} }
#[test] #[test]
fn test_cursor_movement() { fn cursor_movement() {
let mut s = Screen::new(4, 3); let mut s = Screen::new(4, 3);
s.add_change(Change::CursorPosition { s.add_change(Change::CursorPosition {
x: Position::Absolute(3), x: Position::Absolute(3),
@ -721,7 +721,7 @@ mod test {
} }
#[test] #[test]
fn test_attribute_setting() { fn attribute_setting() {
use cell::Intensity; use cell::Intensity;
let mut s = Screen::new(3, 1); let mut s = Screen::new(3, 1);
@ -743,7 +743,7 @@ mod test {
} }
#[test] #[test]
fn test_empty_changes() { fn empty_changes() {
let s = Screen::new(4, 3); let s = Screen::new(4, 3);
let empty = &[Change::ClearScreen(Default::default())]; let empty = &[Change::ClearScreen(Default::default())];
@ -769,7 +769,7 @@ mod test {
} }
#[test] #[test]
fn test_resize_delta_flush() { fn resize_delta_flush() {
let mut s = Screen::new(4, 3); let mut s = Screen::new(4, 3);
s.add_change("a"); s.add_change("a");
let (seq, _) = s.get_changes(0); let (seq, _) = s.get_changes(0);
@ -821,7 +821,7 @@ mod test {
} }
#[test] #[test]
fn test_resize_cursor_position() { fn resize_cursor_position() {
let mut s = Screen::new(4, 4); let mut s = Screen::new(4, 4);
s.add_change(" a"); s.add_change(" a");
@ -850,7 +850,7 @@ mod test {
} }
#[test] #[test]
fn test_delta_change() { fn delta_change() {
let mut s = Screen::new(4, 3); let mut s = Screen::new(4, 3);
// flushing nothing should be a NOP // flushing nothing should be a NOP
s.flush_changes_older_than(0); s.flush_changes_older_than(0);