Browse Source

Fix error messages to match assertions

Closes #8
Chris Bandy 11 years ago
committed by Benedikt Lang
parent
commit
1721683170
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      semver_test.go

+ 5
- 5
semver_test.go View File

@ -176,13 +176,13 @@ func TestCompareHelper(t *testing.T) {
t.Errorf("%q should be equal to %q", v, v) t.Errorf("%q should be equal to %q", v, v)
} }
if !v1.NE(v) { if !v1.NE(v) {
t.Errorf("%q should not be equal to %q", v, v)
t.Errorf("%q should not be equal to %q", v1, v)
} }
if !v.GTE(v) { if !v.GTE(v) {
t.Errorf("%q should be greater than or equal to %q", v, v) t.Errorf("%q should be greater than or equal to %q", v, v)
} }
if !v.LTE(v) { if !v.LTE(v) {
t.Errorf("%q should be greater than or equal to %q", v, v)
t.Errorf("%q should be less than or equal to %q", v, v)
} }
if !v.LT(v1) { if !v.LT(v1) {
t.Errorf("%q should be less than %q", v, v1) t.Errorf("%q should be less than %q", v, v1)
@ -194,13 +194,13 @@ func TestCompareHelper(t *testing.T) {
t.Errorf("%q should be less than or equal %q", v, v1) t.Errorf("%q should be less than or equal %q", v, v1)
} }
if !v1.GT(v) { if !v1.GT(v) {
t.Errorf("%q should be less than %q", v1, v)
t.Errorf("%q should be greater than %q", v1, v)
} }
if !v1.GTE(v) { if !v1.GTE(v) {
t.Errorf("%q should be less than or equal %q", v1, v)
t.Errorf("%q should be greater than or equal %q", v1, v)
} }
if !v1.GE(v) { if !v1.GE(v) {
t.Errorf("%q should be less than or equal %q", v1, v)
t.Errorf("%q should be greater than or equal %q", v1, v)
} }
} }


Loading…
Cancel
Save