Skip to content

Commit 3736827

Browse files
committed
Update map unit tests with random node data values
To ensure that the map functions do not rely on node data values when comparing and performing operations, this commit modifies the unit tests for map. It replaces the sequential data values with random values obtained from mt19937_extract().
1 parent 669da4c commit 3736827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/map/test-map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static int test_map_mixed_operations()
2929
*/
3030
for (int i = 0; i < N_NODES; i++) {
3131
key[i] = i;
32-
val[i] = i + 1;
32+
val[i] = mt19937_extract();
3333
}
3434

3535
for (int i = 0; i < N_NODES; i++) {

0 commit comments

Comments
 (0)