mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-16 09:50:06 +01:00
fixed failing tests
This commit is contained in:
parent
b33e33fe26
commit
c911829771
@ -50,6 +50,9 @@ Options:
|
|||||||
--diff-context <N>
|
--diff-context <N>
|
||||||
Include N lines of context around added/removed/modified lines when using '--diff'.
|
Include N lines of context around added/removed/modified lines when using '--diff'.
|
||||||
|
|
||||||
|
--set_terminal_title
|
||||||
|
Sets terminal title to filenames when using a pager.
|
||||||
|
|
||||||
--tabs <T>
|
--tabs <T>
|
||||||
Set the tab width to T spaces. Use a width of 0 to pass tabs through directly
|
Set the tab width to T spaces. Use a width of 0 to pass tabs through directly
|
||||||
|
|
||||||
|
@ -21,6 +21,8 @@ Options:
|
|||||||
Specify the name to display for a file.
|
Specify the name to display for a file.
|
||||||
-d, --diff
|
-d, --diff
|
||||||
Only show lines that have been added/removed/modified.
|
Only show lines that have been added/removed/modified.
|
||||||
|
--set_terminal_title
|
||||||
|
Sets terminal title when using a pager
|
||||||
--tabs <T>
|
--tabs <T>
|
||||||
Set the tab width to T spaces.
|
Set the tab width to T spaces.
|
||||||
--wrap <mode>
|
--wrap <mode>
|
||||||
|
@ -653,7 +653,7 @@ fn pager_disable() {
|
|||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
.stdout(predicate::eq("\u{1b}]0;bat: test.txt\x07hello world\n").normalize());
|
.stdout(predicate::eq("hello world\n").normalize());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -734,7 +734,7 @@ fn env_var_pager_value_bat() {
|
|||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
.stdout(predicate::eq("\u{1b}]0;bat: test.txt\x07hello world\n").normalize());
|
.stdout(predicate::eq("hello world\n").normalize());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -772,7 +772,7 @@ fn pager_most_from_pager_env_var() {
|
|||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
.stdout(predicate::eq("\u{1b}]0;bat: test.txt\x07hello world\n").normalize());
|
.stdout(predicate::eq("hello world\n").normalize());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -818,7 +818,7 @@ fn pager_most_with_arg() {
|
|||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
.stdout(predicate::eq("\u{1b}]0;bat: test.txt\x07hello world\n").normalize());
|
.stdout(predicate::eq("hello world\n").normalize());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -833,7 +833,7 @@ fn pager_more() {
|
|||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
.stdout(predicate::eq("\u{1b}]0;bat: test.txt\x07hello world\n").normalize());
|
.stdout(predicate::eq("hello world\n").normalize());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -896,7 +896,7 @@ fn enable_pager_if_disable_paging_flag_comes_before_paging() {
|
|||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
.stdout(predicate::eq("\u{1b}]0;bat: test.txt\x07pager-output\n").normalize());
|
.stdout(predicate::eq("pager-output\n").normalize());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -908,7 +908,7 @@ fn enable_pager_if_pp_flag_comes_before_paging() {
|
|||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
.stdout(predicate::eq("\u{1b}]0;bat: test.txt\x07pager-output\n").normalize());
|
.stdout(predicate::eq("pager-output\n").normalize());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user