()
| 869 | |
| 870 | #[test] |
| 871 | fn test_integers() { |
| 872 | #[derive(Serialize)] |
| 873 | struct Integers { |
| 874 | a: i8, |
| 875 | b: i16, |
| 876 | c: i32, |
| 877 | d: i64, |
| 878 | e: u8, |
| 879 | f: u16, |
| 880 | g: u32, |
| 881 | h: u64, |
| 882 | i: i128, |
| 883 | j: u128, |
| 884 | } |
| 885 | |
| 886 | test_ser( |
| 887 | Integers { |
| 888 | a: 1, |
| 889 | b: 2, |
| 890 | c: 3, |
| 891 | d: 4, |
| 892 | e: 5, |
| 893 | f: 6, |
| 894 | g: 7, |
| 895 | h: 8, |
| 896 | i: 9, |
| 897 | j: 10, |
| 898 | }, |
| 899 | r#"{"a":1,"b":2,"c":3,"d":4,"e":5,"f":6,"g":7,"h":8,"i":9,"j":10}"#, |
| 900 | ) |
| 901 | } |
| 902 | |
| 903 | #[test] |
| 904 | fn test_floats() { |
nothing calls this directly
no test coverage detected