1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

od+tests: remove unused spell-checker:disable

This commit is contained in:
Ben Wiederhake 2024-04-30 17:31:30 +02:00
parent a53ec17b67
commit bebddc6ad4

View file

@ -60,7 +60,7 @@ fn test_file() {
#[test] #[test]
fn test_2files() { fn test_2files() {
let (at, mut ucmd) = at_and_ucmd!(); let (at, mut ucmd) = at_and_ucmd!();
at.write("test1", "abcdefghijklmnop"); // spell-checker:disable-line at.write("test1", "abcdefghijklmnop");
at.write("test2", "qrstuvwxyz\n"); // spell-checker:disable-line at.write("test2", "qrstuvwxyz\n"); // spell-checker:disable-line
ucmd.arg("--endian=little") ucmd.arg("--endian=little")
.arg("test1") .arg("test1")
@ -74,13 +74,13 @@ fn test_2files() {
#[test] #[test]
fn test_no_file() { fn test_no_file() {
let (_at, mut ucmd) = at_and_ucmd!(); let (_at, mut ucmd) = at_and_ucmd!();
ucmd.arg("}surely'none'would'thus'a'file'name").fails(); // spell-checker:disable-line ucmd.arg("}surely'none'would'thus'a'file'name").fails();
} }
// Test that od reads from stdin instead of a file // Test that od reads from stdin instead of a file
#[test] #[test]
fn test_from_stdin() { fn test_from_stdin() {
let input = "abcdefghijklmnopqrstuvwxyz\n"; // spell-checker:disable-line let input = "abcdefghijklmnopqrstuvwxyz\n";
new_ucmd!() new_ucmd!()
.arg("--endian=little") .arg("--endian=little")
.run_piped_stdin(input.as_bytes()) .run_piped_stdin(input.as_bytes())
@ -110,7 +110,7 @@ fn test_from_mixed() {
#[test] #[test]
fn test_multiple_formats() { fn test_multiple_formats() {
let input = "abcdefghijklmnopqrstuvwxyz\n"; // spell-checker:disable-line let input = "abcdefghijklmnopqrstuvwxyz\n";
new_ucmd!() new_ucmd!()
.arg("-c") .arg("-c")
.arg("-b") .arg("-b")
@ -581,7 +581,7 @@ fn test_invalid_offset() {
#[test] #[test]
fn test_skip_bytes() { fn test_skip_bytes() {
let input = "abcdefghijklmnopq"; // spell-checker:disable-line let input = "abcdefghijklmnopq";
new_ucmd!() new_ucmd!()
.arg("-c") .arg("-c")
.arg("--skip-bytes=5") .arg("--skip-bytes=5")
@ -598,7 +598,7 @@ fn test_skip_bytes() {
#[test] #[test]
fn test_skip_bytes_hex() { fn test_skip_bytes_hex() {
let input = "abcdefghijklmnopq"; // spell-checker:disable-line let input = "abcdefghijklmnopq";
new_ucmd!() new_ucmd!()
.arg("-c") .arg("-c")
.arg("--skip-bytes=0xB") .arg("--skip-bytes=0xB")
@ -636,7 +636,7 @@ fn test_skip_bytes_error() {
#[test] #[test]
fn test_read_bytes() { fn test_read_bytes() {
let input = "abcdefghijklmnopqrstuvwxyz\n12345678"; // spell-checker:disable-line let input = "abcdefghijklmnopqrstuvwxyz\n12345678";
new_ucmd!() new_ucmd!()
.arg("--endian=little") .arg("--endian=little")
.arg("--read-bytes=27") .arg("--read-bytes=27")
@ -695,7 +695,7 @@ fn test_filename_parsing() {
#[test] #[test]
fn test_stdin_offset() { fn test_stdin_offset() {
let input = "abcdefghijklmnopq"; // spell-checker:disable-line let input = "abcdefghijklmnopq";
new_ucmd!() new_ucmd!()
.arg("-c") .arg("-c")
.arg("+5") .arg("+5")
@ -730,7 +730,7 @@ fn test_file_offset() {
#[test] #[test]
fn test_traditional() { fn test_traditional() {
// note gnu od does not align both lines // note gnu od does not align both lines
let input = "abcdefghijklmnopq"; // spell-checker:disable-line let input = "abcdefghijklmnopq";
new_ucmd!() new_ucmd!()
.arg("--traditional") .arg("--traditional")
.arg("-a") .arg("-a")
@ -753,7 +753,7 @@ fn test_traditional() {
#[test] #[test]
fn test_traditional_with_skip_bytes_override() { fn test_traditional_with_skip_bytes_override() {
// --skip-bytes is ignored in this case // --skip-bytes is ignored in this case
let input = "abcdefghijklmnop"; // spell-checker:disable-line let input = "abcdefghijklmnop";
new_ucmd!() new_ucmd!()
.arg("--traditional") .arg("--traditional")
.arg("--skip-bytes=10") .arg("--skip-bytes=10")
@ -773,7 +773,7 @@ fn test_traditional_with_skip_bytes_override() {
#[test] #[test]
fn test_traditional_with_skip_bytes_non_override() { fn test_traditional_with_skip_bytes_non_override() {
// no offset specified in the traditional way, so --skip-bytes is used // no offset specified in the traditional way, so --skip-bytes is used
let input = "abcdefghijklmnop"; // spell-checker:disable-line let input = "abcdefghijklmnop";
new_ucmd!() new_ucmd!()
.arg("--traditional") .arg("--traditional")
.arg("--skip-bytes=10") .arg("--skip-bytes=10")
@ -803,7 +803,7 @@ fn test_traditional_error() {
#[test] #[test]
fn test_traditional_only_label() { fn test_traditional_only_label() {
let input = "abcdefghijklmnopqrstuvwxyz"; // spell-checker:disable-line let input = "abcdefghijklmnopqrstuvwxyz";
new_ucmd!() new_ucmd!()
.arg("-An") .arg("-An")
.arg("--traditional") .arg("--traditional")