mirror of
https://github.com/priyanshujain/messageboardbench.git
synced 2026-10-04 20:17:06 +00:00
Checkpoint experiments through SWE pilot v2
This commit is contained in:
1 parent
abacd5c5e1
commit
72d77018d8
845 files changed
+431756
-41
No files matched your search
@@ -0,0 +1,25 @@
|
||||
from func import count_beautiful_integers
|
||||
|
||||
def test_func(candidate):
|
||||
# Example test cases
|
||||
assert candidate(10, 20, 3) == 2
|
||||
assert candidate(1, 10, 1) == 1
|
||||
assert candidate(5, 5, 2) == 0
|
||||
|
||||
# Additional test cases
|
||||
assert candidate(1, 1, 1) == 0
|
||||
assert candidate(19, 50, 2) == 6
|
||||
assert candidate(94, 94, 9) == 0
|
||||
assert candidate(94, 100, 1) == 3
|
||||
assert candidate(52, 396, 9) == 5
|
||||
assert candidate(47, 735, 2) == 15
|
||||
assert candidate(90, 110, 16) == 1
|
||||
assert candidate(934, 991, 1) == 0
|
||||
assert candidate(1, 1000000000, 1) == 24894045
|
||||
assert candidate(33340762, 612987024, 1) == 18196584
|
||||
assert candidate(36954768, 642296821, 14) == 1240042
|
||||
assert candidate(17946863, 807558969, 17) == 1319380
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_func(count_beautiful_integers)
|
||||
print("All tests passed!")
|
||||
Reference in new issue
Block a user