test: small serialization test of u256 into json (#991)

Co-authored-by: lambdaclass-user <github@lambdaclass.com>
This commit is contained in:
Estéfano Bargas
2023-01-23 16:03:12 -03:00
committed by GitHub
parent d601895940
commit 68c76664d0

View File

@@ -90,4 +90,12 @@ mod test {
]
);
}
#[test]
fn jsonu256_serialize() {
let data = JsonU256(U256::from(16));
let serialized = serde_json::to_string(&data).unwrap();
assert_eq!(serialized, r#""16""#);
}
}