| 89 | } |
| 90 | |
| 91 | void test_hashLong() { |
| 92 | // INT32 and INT64 tests take too long |
| 93 | for(int64_t i = 0; i < 100; i++) { |
| 94 | int num = rand(); |
| 95 | SIValue siInt64 = SI_LongVal(num); |
| 96 | SIValue siInt64Other = SI_LongVal(num); |
| 97 | uint64_t origHashCode = SIValue_HashCode(siInt64); |
| 98 | uint64_t otherHashCode = SIValue_HashCode(siInt64Other); |
| 99 | TEST_ASSERT(origHashCode == otherHashCode); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | void test_hashDouble() { |
| 104 | SIValue siDouble = SI_DoubleVal(3.14); |
nothing calls this directly
no test coverage detected