Skip to content

Commit 521708c

Browse files
committed
Fixed failing tests
1 parent 38008af commit 521708c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/uu/od/src/input_offset.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl InputOffset {
7373
#[test]
7474
fn test_input_offset() {
7575
let mut sut = InputOffset::new(Radix::Hexadecimal, 10, None);
76-
assert_eq!("00000A", &sut.format_byte_offset());
76+
assert_eq!("00000a", &sut.format_byte_offset());
7777
sut.increase_position(10);
7878
assert_eq!("000014", &sut.format_byte_offset());
7979

@@ -98,16 +98,16 @@ fn test_input_offset() {
9898
#[test]
9999
fn test_input_offset_with_label() {
100100
let mut sut = InputOffset::new(Radix::Hexadecimal, 10, Some(20));
101-
assert_eq!("00000A (000014)", &sut.format_byte_offset());
101+
assert_eq!("00000a (000014)", &sut.format_byte_offset());
102102
sut.increase_position(10);
103-
assert_eq!("000014 (00001E)", &sut.format_byte_offset());
103+
assert_eq!("000014 (00001e)", &sut.format_byte_offset());
104104

105105
// note normally the radix will not change after initialization
106106
sut.set_radix(Radix::Decimal);
107107
assert_eq!("0000020 (0000030)", &sut.format_byte_offset());
108108

109109
sut.set_radix(Radix::Hexadecimal);
110-
assert_eq!("000014 (00001E)", &sut.format_byte_offset());
110+
assert_eq!("000014 (00001e)", &sut.format_byte_offset());
111111

112112
sut.set_radix(Radix::Octal);
113113
assert_eq!("0000024 (0000036)", &sut.format_byte_offset());

0 commit comments

Comments
 (0)