~tdeo/serde_bare

d4ef6507ae55a331d00d4eae26bb7e8da674aadd — Tadeo Kondrak 11 months ago 01932c8
only test u128 when serde's 128-bit integers are enabled
1 files changed, 12 insertions(+), 8 deletions(-)

M src/de.rs
M src/de.rs => src/de.rs +12 -8
@@ 575,10 575,12 @@ mod test {
            578437695752307201i64,
            from_slice(&[1, 2, 3, 4, 5, 6, 7, 8]).unwrap()
        );
        assert_eq!(
            21345817372864405881847059188222722561i128,
            from_slice(&[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]).unwrap()
        );
        serde::serde_if_integer128! {
            assert_eq!(
                21345817372864405881847059188222722561i128,
                from_slice(&[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]).unwrap()
            );
        }
    }

    #[test]


@@ 590,10 592,12 @@ mod test {
            578437695752307201u64,
            from_slice(&[1, 2, 3, 4, 5, 6, 7, 8]).unwrap()
        );
        assert_eq!(
            21345817372864405881847059188222722561u128,
            from_slice(&[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]).unwrap()
        );
        serde::serde_if_integer128! {
            assert_eq!(
                21345817372864405881847059188222722561u128,
                from_slice(&[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]).unwrap()
            );
        }
    }

    #[test]