Skip to content

Commit

Permalink
Include const_tuple with CustomSerialized too
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Sep 9, 2024
1 parent 5d68d59 commit af7a75d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hugr-core/src/ops/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,8 @@ mod test {
assert_ne!(json_const.get_type(), t);
}

#[test]
fn hash_tuple() {
#[rstest]
fn hash_tuple(const_tuple: Value) {
let vals = [
Value::unit(),
Value::true_val(),
Expand All @@ -771,6 +771,7 @@ mod test {
Value::tuple([ConstUsize::new(13).into()]),
Value::tuple([ConstUsize::new(13).into(), ConstUsize::new(14).into()]),
Value::tuple([ConstUsize::new(13).into(), ConstUsize::new(15).into()]),
const_tuple,
];

let num_vals = vals.len();
Expand Down

0 comments on commit af7a75d

Please sign in to comment.