unit_conversion_math.py 404 B

1234567891011121314
  1. from evaluator import *
  2. DESCRIPTION = "Test if a model can do basic math with some EE equations."
  3. TAGS = ['explain']
  4. question = "I measure a voltage drop of 30mv over a 2.5 ohm resistor. How long will a 3Ah battery last? Write your ansser 'XXX hours'"
  5. TestUnitConversion = question >> LLMRun() >> RegexEvaluator("250.{,10}hours")
  6. if __name__ == "__main__":
  7. print(run_test(TestUnitConversion))