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:
parent
23ee64b057
commit
9630d9d281
|
@ -31,11 +31,11 @@ func TestSeqMap(t *testing.T) {
|
|||
assert.Equal(false, found)
|
||||
|
||||
uid, found = seqmap.Get(1)
|
||||
assert.Equal(uint32(1337), uid)
|
||||
assert.Equal(1337, int(uid))
|
||||
assert.Equal(true, found)
|
||||
|
||||
uid, found = seqmap.Pop(1)
|
||||
assert.Equal(uint32(1337), uid)
|
||||
assert.Equal(1337, int(uid))
|
||||
assert.Equal(true, found)
|
||||
assert.Equal(2, seqmap.Size())
|
||||
|
||||
|
|
Loading…
Reference in New Issue