From 379287d887d112d09e6482a7683f2261b293376d Mon Sep 17 00:00:00 2001 From: Edgar HIPP Date: Sat, 16 Jan 2016 08:23:19 +0100 Subject: [PATCH] Add failing test for filesize and git remote --- pe_test.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pe_test.go b/pe_test.go index dde9cf8..677161c 100644 --- a/pe_test.go +++ b/pe_test.go @@ -8,6 +8,26 @@ func TestEverything(t *testing.T) { t.Errorf("Doesnt match files", output) } + output = GetAllMatches("2.0G", "") + if len(output) != 0 { + t.Errorf("File size matches", output) + } + + output = GetAllMatches("4.0K", "") + if len(output) != 0 { + t.Errorf("File size matches", output) + } + + output = GetAllMatches("72K", "") + if len(output) != 0 { + t.Errorf("File size matches", output) + } + + output = GetAllMatches("remotes/origin/master", "") + if len(output) != 0 { + t.Errorf("Git branch matches", output) + } + output = GetAllMatches("I have a cat.", "") if len(output) != 0 { t.Errorf("Matches sentence", output) -- 2.44.0