Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adria0 committed May 17, 2024
1 parent 04dbd38 commit 80731d7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions halo2_frontend/src/circuit/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,3 +697,18 @@ impl<F: Field> Value<Assigned<F>> {
}
}
}

#[cfg(test)]
mod test {
use super::*;
type V = Value<u64>;
fn assert_eq(a: V, b: V) {
assert_eq!(a.inner, b.inner);
}

#[test]
fn test_check_inits() {
assert_eq!(V::unknown().inner, None);
assert_eq(V::default(),V::unknown());
}
}

0 comments on commit 80731d7

Please sign in to comment.