mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
od+tests: remove unused spell-checker:disable
This commit is contained in:
parent
a53ec17b67
commit
bebddc6ad4
1 changed files with 12 additions and 12 deletions
|
@ -60,7 +60,7 @@ fn test_file() {
|
|||
#[test]
|
||||
fn test_2files() {
|
||||
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
|
||||
ucmd.arg("--endian=little")
|
||||
.arg("test1")
|
||||
|
@ -74,13 +74,13 @@ fn test_2files() {
|
|||
#[test]
|
||||
fn test_no_file() {
|
||||
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]
|
||||
fn test_from_stdin() {
|
||||
let input = "abcdefghijklmnopqrstuvwxyz\n"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnopqrstuvwxyz\n";
|
||||
new_ucmd!()
|
||||
.arg("--endian=little")
|
||||
.run_piped_stdin(input.as_bytes())
|
||||
|
@ -110,7 +110,7 @@ fn test_from_mixed() {
|
|||
|
||||
#[test]
|
||||
fn test_multiple_formats() {
|
||||
let input = "abcdefghijklmnopqrstuvwxyz\n"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnopqrstuvwxyz\n";
|
||||
new_ucmd!()
|
||||
.arg("-c")
|
||||
.arg("-b")
|
||||
|
@ -581,7 +581,7 @@ fn test_invalid_offset() {
|
|||
|
||||
#[test]
|
||||
fn test_skip_bytes() {
|
||||
let input = "abcdefghijklmnopq"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnopq";
|
||||
new_ucmd!()
|
||||
.arg("-c")
|
||||
.arg("--skip-bytes=5")
|
||||
|
@ -598,7 +598,7 @@ fn test_skip_bytes() {
|
|||
|
||||
#[test]
|
||||
fn test_skip_bytes_hex() {
|
||||
let input = "abcdefghijklmnopq"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnopq";
|
||||
new_ucmd!()
|
||||
.arg("-c")
|
||||
.arg("--skip-bytes=0xB")
|
||||
|
@ -636,7 +636,7 @@ fn test_skip_bytes_error() {
|
|||
|
||||
#[test]
|
||||
fn test_read_bytes() {
|
||||
let input = "abcdefghijklmnopqrstuvwxyz\n12345678"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnopqrstuvwxyz\n12345678";
|
||||
new_ucmd!()
|
||||
.arg("--endian=little")
|
||||
.arg("--read-bytes=27")
|
||||
|
@ -695,7 +695,7 @@ fn test_filename_parsing() {
|
|||
|
||||
#[test]
|
||||
fn test_stdin_offset() {
|
||||
let input = "abcdefghijklmnopq"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnopq";
|
||||
new_ucmd!()
|
||||
.arg("-c")
|
||||
.arg("+5")
|
||||
|
@ -730,7 +730,7 @@ fn test_file_offset() {
|
|||
#[test]
|
||||
fn test_traditional() {
|
||||
// note gnu od does not align both lines
|
||||
let input = "abcdefghijklmnopq"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnopq";
|
||||
new_ucmd!()
|
||||
.arg("--traditional")
|
||||
.arg("-a")
|
||||
|
@ -753,7 +753,7 @@ fn test_traditional() {
|
|||
#[test]
|
||||
fn test_traditional_with_skip_bytes_override() {
|
||||
// --skip-bytes is ignored in this case
|
||||
let input = "abcdefghijklmnop"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnop";
|
||||
new_ucmd!()
|
||||
.arg("--traditional")
|
||||
.arg("--skip-bytes=10")
|
||||
|
@ -773,7 +773,7 @@ fn test_traditional_with_skip_bytes_override() {
|
|||
#[test]
|
||||
fn test_traditional_with_skip_bytes_non_override() {
|
||||
// no offset specified in the traditional way, so --skip-bytes is used
|
||||
let input = "abcdefghijklmnop"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnop";
|
||||
new_ucmd!()
|
||||
.arg("--traditional")
|
||||
.arg("--skip-bytes=10")
|
||||
|
@ -803,7 +803,7 @@ fn test_traditional_error() {
|
|||
|
||||
#[test]
|
||||
fn test_traditional_only_label() {
|
||||
let input = "abcdefghijklmnopqrstuvwxyz"; // spell-checker:disable-line
|
||||
let input = "abcdefghijklmnopqrstuvwxyz";
|
||||
new_ucmd!()
|
||||
.arg("-An")
|
||||
.arg("--traditional")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue