+ output = GetAllMatches("4.0K", "")
+ if len(output) != 0 {
+ t.Error("File size matches", output)
+ }
+
+ output = GetAllMatches("72K", "")
+ if len(output) != 0 {
+ t.Error("File size matches", output)
+ }
+
+ output = GetAllMatches("remotes/origin/master", "")
+ if len(output) != 0 {
+ t.Error("Git branch matches", output)
+ }
+
+ output = GetAllMatches("I have a cat.", "")
+ if len(output) != 0 {
+ t.Error("Matches sentence", output)
+ }
+
+ output = GetAllMatches("0.0.0.0:3000", "")
+ if len(output) != 0 {
+ t.Error("Match ipadress", output)
+ }
+
+ output = GetAllMatches("'/usr/bin", "")
+ if output[0] != "/usr/bin" {
+ t.Error("Doesn't match statement correctly", output)
+ }
+
+ output = GetAllMatches("/usr_b/bin", "")
+ if output[0] != "/usr_b/bin" {
+ t.Error("Doesn't match statement correctly", output)
+ }
+
+ output = GetAllMatches("\"/usr/bin", "")
+ if output[0] != "/usr/bin" {
+ t.Error("Doesn't match statement correctly", output)
+ }
+
+ output = GetAllMatches("`/usr/bin", "")
+ if output[0] != "/usr/bin" {
+ t.Error("Doesn't match statement correctly", output)
+ }
+
+ output = GetAllMatches("€/usr/bin", "")
+ if output[0] != "/usr/bin" {
+ t.Error("Doesn't match statement correctly", output)
+ }
+
+ output = GetAllMatches("prefix=/usr/bin", "")