Skip to content

Commit 3df4d33

Browse files
authored
add roundtrip tests for all i16/u16 (#545)
1 parent 475db3b commit 3df4d33

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/roundtrip_tests.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ fn test_i8() {
2121
}
2222
}
2323

24+
#[test]
25+
fn test_u16() {
26+
for i in u16::MIN..=u16::MAX {
27+
assert_roundtrips::<u16>(i);
28+
}
29+
}
30+
31+
#[test]
32+
fn test_i16() {
33+
for i in i16::MIN..=i16::MAX {
34+
assert_roundtrips::<i16>(i);
35+
}
36+
}
37+
2438
#[test]
2539
fn test_u64() {
2640
for v in [0, 12356915591483590945, u64::MAX] {

0 commit comments

Comments
 (0)