Debian Codegraph @

tests/min_max.rs

raw symbols SCIP
1 use ron::{de::*, ser::*};
2
3 #[test]
4 fn test_i32_min() {
5 assert_eq!(
6 std::i32::MIN,
7 from_str(&to_string(&std::i32::MIN).unwrap()).unwrap()
8 );
9 }
10
11 #[test]
12 fn test_i32_max() {
13 assert_eq!(
14 std::i32::MAX,
15 from_str(&to_string(&std::i32::MAX).unwrap()).unwrap()
16 );
17 }
18
19 #[test]
20 fn test_i64_min() {
21 assert_eq!(
22 std::i64::MIN,
23 from_str(&to_string(&std::i64::MIN).unwrap()).unwrap()
24 );
25 }
26
27 #[test]
28 fn test_i64_max() {
29 assert_eq!(
30 std::i64::MAX,
31 from_str(&to_string(&std::i64::MAX).unwrap()).unwrap()
32 );
33 }
34
35 #[cfg(feature = "integer128")]
36 #[test]
37 fn test_i128_min() {
38 assert_eq!(
39 std::i128::MIN,
40 from_str(&to_string(&std::i128::MIN).unwrap()).unwrap()
41 );
42 }
43
44 #[cfg(feature = "integer128")]
45 #[test]
46 fn test_i128_max() {
47 assert_eq!(
48 std::i128::MAX,
49 from_str(&to_string(&std::i128::MAX).unwrap()).unwrap()
50 );
51 }
52
53 #[cfg(feature = "integer128")]
54 #[test]
55 fn test_u128_min() {
56 assert_eq!(
57 std::u128::MIN,
58 from_str(&to_string(&std::u128::MIN).unwrap()).unwrap()
59 );
60 }
61
62 #[cfg(feature = "integer128")]
63 #[test]
64 fn test_u128_max() {
65 assert_eq!(
66 std::u128::MAX,
67 from_str(&to_string(&std::u128::MAX).unwrap()).unwrap()
68 );
69 }