From 9c6b4257f4ecd5b430ae0d7b5ff36b0c01ccb3c9 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 5 Apr 2016 18:13:27 -0400 Subject: [PATCH] check: now the simple test passes Signed-off-by: Vincent Batts --- check_test.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/check_test.go b/check_test.go index e0dccec..eac2e56 100644 --- a/check_test.go +++ b/check_test.go @@ -1,9 +1,6 @@ package mtree -import ( - "log" - "testing" -) +import "testing" func TestCheck(t *testing.T) { dh, err := Walk(".", nil, append(DefaultKeywords, "sha1")) @@ -15,6 +12,10 @@ func TestCheck(t *testing.T) { if err != nil { t.Fatal(err) } - //log.Fatalf("%#v", dh) - log.Fatalf("%#v", res) + + if len(res.Failures) > 0 { + t.Errorf("%#v", res) + } } + +// TODO make a directory, walk it, check it, modify it and ensure it fails