The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
560 B

4 weeks ago
  1. import os
  2. def test_evals(capture):
  3. from pybind11_tests import (test_eval_statements, test_eval, test_eval_single_statement,
  4. test_eval_file, test_eval_failure, test_eval_file_failure)
  5. with capture:
  6. assert test_eval_statements()
  7. assert capture == "Hello World!"
  8. assert test_eval()
  9. assert test_eval_single_statement()
  10. filename = os.path.join(os.path.dirname(__file__), "test_eval_call.py")
  11. assert test_eval_file(filename)
  12. assert test_eval_failure()
  13. assert test_eval_file_failure()