seqmap: compare ints instead of uints

When a test fails with a uint comparison, assert displays the hex code
instead of an int, making it harder to debug. Use ints in sequmap test
asserts instead of uints for better readability when tests fail

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Tim Culverhouse 2022-08-01 12:18:24 -05:00 committed by Robin Jarry
parent 23ee64b057
commit 9630d9d281

View file

@ -31,11 +31,11 @@ func TestSeqMap(t *testing.T) {
assert.Equal(false, found) assert.Equal(false, found)
uid, found = seqmap.Get(1) uid, found = seqmap.Get(1)
assert.Equal(uint32(1337), uid) assert.Equal(1337, int(uid))
assert.Equal(true, found) assert.Equal(true, found)
uid, found = seqmap.Pop(1) uid, found = seqmap.Pop(1)
assert.Equal(uint32(1337), uid) assert.Equal(1337, int(uid))
assert.Equal(true, found) assert.Equal(true, found)
assert.Equal(2, seqmap.Size()) assert.Equal(2, seqmap.Size())