Test for entities with same id, different types
| 239 | |
| 240 | // Test for entities with same id, different types |
| 241 | void test_edgeAndNode() { |
| 242 | AttributeSet attr; |
| 243 | |
| 244 | Edge e0; |
| 245 | e0.id = 0; |
| 246 | e0.attributes = &attr; |
| 247 | SIValue edge = SI_Edge(&e0); |
| 248 | |
| 249 | Node n0; |
| 250 | n0.attributes = &attr; |
| 251 | SIValue node = SI_Node(&n0); |
| 252 | |
| 253 | TEST_ASSERT(SIValue_HashCode(node) != SIValue_HashCode(edge)); |
| 254 | } |
| 255 | |
| 256 | void test_set() { |
| 257 | set *set = Set_New(); |
nothing calls this directly
no test coverage detected