From: Edgar HIPP Date: Sat, 16 Jan 2016 07:23:19 +0000 (+0100) Subject: Add failing test for filesize and git remote X-Git-Url: http://www.git.stargrave.org/?p=path-extractor.git;a=commitdiff_plain;h=379287d887d112d09e6482a7683f2261b293376d Add failing test for filesize and git remote --- 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)