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 1d1a299
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions halo2_frontend/src/circuit/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,3 +697,15 @@ impl<F: Field> Value<Assigned<F>> {
}
}
}

#[cfg(test)]
mod test {
use super::*;
type V = Value<u64>;

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

Check failure on line 709 in halo2_frontend/src/circuit/value.rs

View workflow job for this annotation

GitHub Actions / Test on macOS-latest with basic features

binary operation `==` cannot be applied to type `value::Value<u64>`

Check failure on line 709 in halo2_frontend/src/circuit/value.rs

View workflow job for this annotation

GitHub Actions / Test on ubuntu-latest with basic features

binary operation `==` cannot be applied to type `value::Value<u64>`
}
}

0 comments on commit 1d1a299

Please sign in to comment.