From bb6f7a41edb21d4edc37885350f32e8d1278877b Mon Sep 17 00:00:00 2001 From: "xinhui.li" Date: Mon, 21 Oct 2019 00:08:40 +0800 Subject: [PATCH] fix unit test (#24) --- analyzer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzer_test.go b/analyzer_test.go index b1b9a4d..21d834e 100644 --- a/analyzer_test.go +++ b/analyzer_test.go @@ -185,7 +185,7 @@ func TestAnalyzerMergeNodes(t *testing.T) { atree.Finalize() for _, l := range []int{1, 7, 8, 10} { - require.Equal(t, allTypesCount+1, len(atree.levels[l]), fmt.Sprintf("Expected: len(levels[%d]) == %d, Actual: got non-nil %s", l, allTypesCount+1, len(atree.levels[l]))) + require.Equal(t, allTypesCount+1, len(atree.levels[l]), fmt.Sprintf("Expected: len(levels[%d]) == %d, Actual: got non-nil %d", l, allTypesCount+1, len(atree.levels[l]))) for i := 1; i < allTypesCount; i++ { node := atree.levels[l][i]