Jason Rhinelander | b3f3d79 | 2016-07-18 16:43:18 -0400 | [diff] [blame^] | 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 | ExampleWithEnum::test_function(enum=1) |
| 20 | ExampleWithEnum::test_function(enum=1) |
| 21 | ExampleWithEnum::test_function(enum=1) |
| 22 | Equality test 1: True |
| 23 | ExampleWithEnum::test_function(enum=1) |
| 24 | ExampleWithEnum::test_function(enum=1) |
| 25 | Inequality test 1: False |
| 26 | ExampleWithEnum::test_function(enum=1) |
| 27 | ExampleWithEnum::test_function(enum=2) |
| 28 | Equality test 2: False |
| 29 | ExampleWithEnum::test_function(enum=1) |
| 30 | ExampleWithEnum::test_function(enum=2) |
| 31 | Inequality test 2: True |
| 32 | ExampleWithEnum::test_function(enum=1) |
| 33 | ExampleWithEnum::test_function(enum=2) |
| 34 | ExampleWithEnum::test_function(enum=1) |
| 35 | ExampleWithEnum::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 |