1
0

test_answers.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. hello world!
  2. successfully errored with this message:
  3. Traceback (most recent call last):
  4. NameError: nonexistatn
  5. testing int methods
  6. 11
  7. 11
  8. testing float methods
  9. 11.11
  10. 11.110000
  11. testing bool methods
  12. False
  13. 0
  14. testing string methods
  15. hello!
  16. hello
  17. hello
  18. testing None methods
  19. None
  20. testing voidp methods
  21. <void* at 0x7b>
  22. 123
  23. testing sizing and indexing
  24. stack size 6
  25. testing error catching
  26. successfully errored with this message:
  27. File "<c-bound>", line 1
  28. let's make sure syntax errors get caught
  29. SyntaxError: EOL while scanning string literal
  30. testing calls
  31. x : -1
  32. vararg_x : 21
  33. keyword_x : 4
  34. keyword_x : 2
  35. retmany_x : 1
  36. retmany_x : 2
  37. retmany_x : 3
  38. successfully errored with this message:
  39. TypeError: expected 2 positional arguments, but got 0 (x)
  40. ['hello']
  41. testing pushing functions
  42. 12
  43. successfully errored with this message:
  44. Traceback (most recent call last):
  45. File "<c-bound>", line 1
  46. test_error_propagate()
  47. NameError: does not exist
  48. successfully errored with this message:
  49. Traceback (most recent call last):
  50. File "<c-bound>", line 1
  51. raise NameError('testing error throwing from python')
  52. NameError: testing error throwing from python
  53. successfully errored with this message:
  54. Traceback (most recent call last):
  55. _: test direct error mechanism
  56. successfully errored with this message:
  57. Traceback (most recent call last):
  58. File "<c-bound>", line 1
  59. test_nested_error()
  60. File "<c-bound>", line 1
  61. def error_from_python() : raise NotImplementedError()
  62. NotImplementedError
  63. pi: 3.14
  64. pi: 3.14
  65. 2