Skip to content

Commit

Permalink
itf::Value over itf::value::Value
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 20, 2023
1 parent e53d02d commit 21aa057
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions itf/tests/regression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ fn test_num_bigint() {
assert!(itf::from_value::<u64>(itf.clone()).is_err());
assert!(itf::from_value::<itf::value::BigInt>(itf.clone()).is_err());
assert!(!matches!(
itf::from_value::<itf::value::Value>(itf.clone()).unwrap(),
itf::value::Value::BigInt(_),
itf::from_value::<itf::Value>(itf.clone()).unwrap(),
itf::Value::BigInt(_),
));
}

Expand All @@ -58,8 +58,8 @@ fn test_bigint_deser() {
assert!(itf::from_value::<u64>(itf.clone()).is_err());
assert!(itf::from_value::<itf::value::BigInt>(itf.clone()).is_err());
assert!(!matches!(
itf::from_value::<itf::value::Value>(itf.clone()).unwrap(),
itf::value::Value::BigInt(_),
itf::from_value::<itf::Value>(itf.clone()).unwrap(),
itf::Value::BigInt(_),
));
}

Expand All @@ -79,8 +79,8 @@ fn test_biguint_deser() {
assert!(itf::from_value::<num_bigint::BigUint>(itf.clone()).is_err());
assert!(itf::from_value::<itf::value::BigInt>(itf.clone()).is_err());
assert!(!matches!(
itf::from_value::<itf::value::Value>(itf.clone()).unwrap(),
itf::value::Value::BigInt(_),
itf::from_value::<itf::Value>(itf.clone()).unwrap(),
itf::Value::BigInt(_),
));
}

Expand Down

0 comments on commit 21aa057

Please sign in to comment.