backyard/bitten/test_e.py

15 lines
381 B
Python
Raw Normal View History

2022-06-06 21:58:15 -07:00
#!/usr/bin/env python3
from bitten import *
@bite(Minimize(0), budget=1_000, _debug=True)
def nothing(x):
return 420.69
print("OPTIMIZED:", nothing.__optimized__, "RESULT:", nothing.__result__, sep="\n")
@bite(Minimize(1, 2), budget=1_000, _debug=True)
def nothing(a, b):
return a + b
print("OPTIMIZED:", nothing.__optimized__, "RESULT:", nothing.__result__, sep="\n")