From 656efb4ea629713159ca5cc4de2d4fbbd75fc0ae Mon Sep 17 00:00:00 2001 From: Ashley Svetlik Date: Wed, 19 Jun 2019 13:08:54 -0500 Subject: [PATCH] Fixed fuzz_test.go order to mergability --- roaring/fuzz_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roaring/fuzz_test.go b/roaring/fuzz_test.go index abcac1c0b..78b4bb34a 100644 --- a/roaring/fuzz_test.go +++ b/roaring/fuzz_test.go @@ -23,14 +23,14 @@ func TestUnmarshalBinary(t *testing.T) { cr []byte expected string } { + { // Checks for the zero containers situation + cr : []byte(":0\x000\x01\x00\x00\x000000"), //":000000" + expected : "reading roaring header: malformed bitmap, key-cardinality slice overruns buffer at 12", + }, { // Checks for int overflow cr : []byte("<0\x000\x00\x00\x00\x00000000000000" + "0"), //"<000000000000000" expected : "unmarshaling as pilosa roaring: Maximum operation size exceeded", - }, - { // Checks for the zero containers situation - cr : []byte(":0\x000\x01\x00\x00\x000000"), //":000000" - expected : "reading roaring header: malformed bitmap, key-cardinality slice overruns buffer at 12", }, { // The next 5 check for malformed bitmaps cr : []byte("<0\x0000000000000000000" +