Skip to content

Commit 6c7b6dd

Browse files
starknet_os_flow_tests: add blake count check to new class test (#10647)
1 parent af7a564 commit 6c7b6dd

File tree

1 file changed

+7
-1
lines changed
  • crates/starknet_os_flow_tests/src

1 file changed

+7
-1
lines changed

crates/starknet_os_flow_tests/src/tests.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,6 @@ async fn test_experimental_libfuncs_contract(#[values(true, false)] use_kzg_da:
12901290
test_output.perform_default_validations();
12911291

12921292
// Validate poseidon usage.
1293-
// TODO(Meshi): Add blake opcode validations.
12941293
let poseidons = test_output.get_builtin_usage(&BuiltinName::poseidon);
12951294
if use_kzg_da {
12961295
expect![[r#"
@@ -1304,6 +1303,13 @@ async fn test_experimental_libfuncs_contract(#[values(true, false)] use_kzg_da:
13041303
.assert_debug_eq(&poseidons);
13051304
}
13061305

1306+
// Validate blake usage.
1307+
let blakes = test_output.runner_output.metrics.opcode_instances.blake_opcode_count;
1308+
expect![[r#"
1309+
564
1310+
"#]]
1311+
.assert_debug_eq(&blakes);
1312+
13071313
// Hint coverage.
13081314
test_output.expect_hint_coverage(&format!(
13091315
"test_experimental_libfuncs_contract_use_kzg_da_{}",

0 commit comments

Comments
 (0)