mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
cat+tests: simplify spell-checker exceptions
This commit is contained in:
parent
1162c53f56
commit
34da5029df
1 changed files with 2 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
//
|
//
|
||||||
// For the full copyright and license information, please view the LICENSE
|
// For the full copyright and license information, please view the LICENSE
|
||||||
// file that was distributed with this source code.
|
// file that was distributed with this source code.
|
||||||
// spell-checker:ignore NOFILE
|
// spell-checker:ignore NOFILE nonewline
|
||||||
|
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
use crate::common::util::vec_of_size;
|
use crate::common::util::vec_of_size;
|
||||||
|
@ -23,7 +23,6 @@ fn test_output_simple() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_no_options() {
|
fn test_no_options() {
|
||||||
// spell-checker:disable-next-line
|
|
||||||
for fixture in ["empty.txt", "alpha.txt", "nonewline.txt"] {
|
for fixture in ["empty.txt", "alpha.txt", "nonewline.txt"] {
|
||||||
// Give fixture through command line file argument
|
// Give fixture through command line file argument
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
|
@ -196,7 +195,6 @@ fn test_directory() {
|
||||||
fn test_directory_and_file() {
|
fn test_directory_and_file() {
|
||||||
let s = TestScenario::new(util_name!());
|
let s = TestScenario::new(util_name!());
|
||||||
s.fixtures.mkdir("test_directory2");
|
s.fixtures.mkdir("test_directory2");
|
||||||
// spell-checker:disable-next-line
|
|
||||||
for fixture in ["empty.txt", "alpha.txt", "nonewline.txt"] {
|
for fixture in ["empty.txt", "alpha.txt", "nonewline.txt"] {
|
||||||
s.ucmd()
|
s.ucmd()
|
||||||
.args(&["test_directory2", fixture])
|
.args(&["test_directory2", fixture])
|
||||||
|
@ -219,7 +217,7 @@ fn test_three_directories_and_file_and_stdin() {
|
||||||
"alpha.txt",
|
"alpha.txt",
|
||||||
"-",
|
"-",
|
||||||
"file_which_does_not_exist.txt",
|
"file_which_does_not_exist.txt",
|
||||||
"nonewline.txt", // spell-checker:disable-line
|
"nonewline.txt",
|
||||||
"test_directory3/test_directory5",
|
"test_directory3/test_directory5",
|
||||||
"test_directory3/../test_directory3/test_directory5",
|
"test_directory3/../test_directory3/test_directory5",
|
||||||
"test_directory3",
|
"test_directory3",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue