Test integer128 impls

This commit is contained in:
David Tolnay
2018-05-19 16:31:44 -07:00
parent c17bc6c49c
commit 9083cf4b00
2 changed files with 28 additions and 0 deletions
+7
View File
@@ -586,3 +586,10 @@ fn test_enum_skipped() {
"the enum variant Enum::SkippedMap cannot be serialized",
);
}
#[test]
fn test_integer128() {
assert_ser_tokens_error(&1i128, &[], "i128 is not supported");
assert_ser_tokens_error(&1u128, &[], "u128 is not supported");
}