mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-17 03:23:14 +02:00
Add do-not-panic! regression tests
This commit is contained in:
@ -627,3 +627,20 @@ fn filename_multiple_err() {
|
||||
.assert()
|
||||
.failure();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn do_not_panic_regression_tests() {
|
||||
for filename in &[
|
||||
"issue_28.md",
|
||||
"issue_190.md",
|
||||
"issue_314.hs",
|
||||
"issue_914.rb",
|
||||
"issue_915.vue",
|
||||
] {
|
||||
bat()
|
||||
.arg("--color=always")
|
||||
.arg(&format!("regression_tests/{}", filename))
|
||||
.assert()
|
||||
.success();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user