Skip to content

Commit 8688ac9

Browse files
tests: Switch argument order of variable width
The width is specified before the value. Switch the argument order so that the resulting output's width is a more reasonable 17 instead of 23125. This is in preparation for modifying the test asserts to include the expected output.
1 parent ca465f8 commit 8688ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn test_str() {
7979
#[test]
8080
fn test_int() {
8181
unsafe {
82-
assert_eq_fmt!(c"% 0*i", 23125, 17);
82+
assert_eq_fmt!(c"% 0*i", 17, 23125);
8383
assert_eq_fmt!(c"% 010i", 23125);
8484
assert_eq_fmt!(c"% 10i", 23125);
8585
assert_eq_fmt!(c"% 5i", 23125);

0 commit comments

Comments
 (0)