summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2024-04-30 17:27:41 +0200
committerBen Wiederhake <BenWiederhake.GitHub@gmx.de>2024-04-30 18:28:20 +0200
commit34da5029df7cd37367360ccdc643d6a8e20f944f (patch)
tree0cbad4dea196a1949beb38efa3ab5859c1b74a69
parent1162c53f5626a10c33fa3cc0cc4b71a7aa51bcff (diff)
cat+tests: simplify spell-checker exceptions
-rw-r--r--tests/by-util/test_cat.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/by-util/test_cat.rs b/tests/by-util/test_cat.rs
index b7b19fd32..b11c0ec0c 100644
--- a/tests/by-util/test_cat.rs
+++ b/tests/by-util/test_cat.rs
@@ -2,7 +2,7 @@
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
-// spell-checker:ignore NOFILE
+// spell-checker:ignore NOFILE nonewline
#[cfg(not(windows))]
use crate::common::util::vec_of_size;
@@ -23,7 +23,6 @@ fn test_output_simple() {
#[test]
fn test_no_options() {
- // spell-checker:disable-next-line
for fixture in ["empty.txt", "alpha.txt", "nonewline.txt"] {
// Give fixture through command line file argument
new_ucmd!()
@@ -196,7 +195,6 @@ fn test_directory() {
fn test_directory_and_file() {
let s = TestScenario::new(util_name!());
s.fixtures.mkdir("test_directory2");
- // spell-checker:disable-next-line
for fixture in ["empty.txt", "alpha.txt", "nonewline.txt"] {
s.ucmd()
.args(&["test_directory2", fixture])
@@ -219,7 +217,7 @@ fn test_three_directories_and_file_and_stdin() {
"alpha.txt",
"-",
"file_which_does_not_exist.txt",
- "nonewline.txt", // spell-checker:disable-line
+ "nonewline.txt",
"test_directory3/test_directory5",
"test_directory3/../test_directory3/test_directory5",
"test_directory3",