mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
fix tests cases
This commit is contained in:
parent
7f83ee8162
commit
602b2c17c1
1 changed files with 3 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ def test_speedup_critic() -> None:
|
|||
total_candidate_timing=12,
|
||||
)
|
||||
|
||||
assert speedup_critic(candidate_result, original_code_runtime, best_runtime_until_now, True) # 20% improvement
|
||||
assert speedup_critic(candidate_result, original_code_runtime, best_runtime_until_now, disable_gh_action_noise=True) # 20% improvement
|
||||
|
||||
candidate_result = OptimizedCandidateResult(
|
||||
max_loop_count=5,
|
||||
|
|
@ -52,7 +52,7 @@ def test_speedup_critic() -> None:
|
|||
optimization_candidate_index=0,
|
||||
)
|
||||
|
||||
assert not speedup_critic(candidate_result, original_code_runtime, best_runtime_until_now, True) # 6% improvement
|
||||
assert not speedup_critic(candidate_result, original_code_runtime, best_runtime_until_now, disable_gh_action_noise=True) # 6% improvement
|
||||
|
||||
original_code_runtime = 100000
|
||||
best_runtime_until_now = 100000
|
||||
|
|
@ -66,7 +66,7 @@ def test_speedup_critic() -> None:
|
|||
optimization_candidate_index=0,
|
||||
)
|
||||
|
||||
assert speedup_critic(candidate_result, original_code_runtime, best_runtime_until_now, True) # 6% improvement
|
||||
assert speedup_critic(candidate_result, original_code_runtime, best_runtime_until_now, disable_gh_action_noise=True) # 6% improvement
|
||||
|
||||
|
||||
def test_generated_test_critic() -> None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue