diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-08-01 12:18:24 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-03 22:37:09 +0200 |
commit | 9630d9d281e6dc2ea20f7def3531ee3fcf8c6c47 (patch) | |
tree | affda072a271b58f50464abaf9e47f294d73771c /worker/imap | |
parent | 23ee64b057ab2556d30ece6170e9fd716015946f (diff) | |
download | aerc-9630d9d281e6dc2ea20f7def3531ee3fcf8c6c47.tar.gz |
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>
Diffstat (limited to 'worker/imap')
-rw-r--r-- | worker/imap/seqmap_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/imap/seqmap_test.go b/worker/imap/seqmap_test.go index 10d67f3d..70677218 100644 --- a/worker/imap/seqmap_test.go +++ b/worker/imap/seqmap_test.go @@ -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()) |