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.

40 lines
961 B

  1. <class 'example.EMyEnumeration'>
  2. EMyEnumeration.EFirstEntry
  3. EMyEnumeration.ESecondEntry
  4. EMyEnumeration.EFirstEntry
  5. test_function()
  6. False
  7. test_function(7)
  8. 3.5
  9. test_function(enum=1)
  10. None
  11. test_function(enum=2)
  12. None
  13. enum->integer = 2
  14. integer->enum = EMyEnumeration.ESecondEntry
  15. A constant = 14
  16. <class 'example.EMode'>
  17. EMode.EFirstMode
  18. EMode.EFirstMode
  19. Example4::test_function(enum=1)
  20. Example4::test_function(enum=1)
  21. Example4::test_function(enum=1)
  22. Equality test 1: True
  23. Example4::test_function(enum=1)
  24. Example4::test_function(enum=1)
  25. Inequality test 1: False
  26. Example4::test_function(enum=1)
  27. Example4::test_function(enum=2)
  28. Equality test 2: False
  29. Example4::test_function(enum=1)
  30. Example4::test_function(enum=2)
  31. Inequality test 2: True
  32. Example4::test_function(enum=1)
  33. Example4::test_function(enum=2)
  34. Example4::test_function(enum=1)
  35. Example4::test_function(enum=2)
  36. Hashing test = {EMode.EFirstMode: 3, EMode.ESecondMode: 4}
  37. bytes[0]=1
  38. bytes[1]=0
  39. bytes[2]=2
  40. bytes[3]=0