Skip to content

Commit

Permalink
Fix rand tests
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zk committed Sep 16, 2024
1 parent eb7cf5d commit f700b47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fhevm-engine/coprocessor/src/tests/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ async fn test_fhe_random_basic() -> Result<(), Box<dyn std::error::Error>> {
let resp = decrypt_ciphertexts(&pool, 1, decrypt_request).await?;
let expected: Vec<DecryptionResult> = vec![
DecryptionResult { value: "true".to_string(), output_type: 0 },
DecryptionResult { value: "15".to_string(), output_type: 1 },
DecryptionResult { value: "191".to_string(), output_type: 2 },
DecryptionResult { value: "31935".to_string(), output_type: 3 },
DecryptionResult { value: "50166975".to_string(), output_type: 4 },
Expand Down Expand Up @@ -174,7 +175,8 @@ async fn test_fhe_random_bounded() -> Result<(), Box<dyn std::error::Error>> {

let deterministic_seed = 123u8;
let bounds = [
"8",
"2",
"4",
"128",
"16384",
"1073741824",
Expand All @@ -185,6 +187,7 @@ async fn test_fhe_random_bounded() -> Result<(), Box<dyn std::error::Error>> {
];
let results = [
"true",
"3",
"127",
"15551",
"50166975",
Expand Down

0 comments on commit f700b47

Please sign in to comment.