From 172168317054cb2b2c41b7686ffd7eb0b3798c33 Mon Sep 17 00:00:00 2001 From: Chris Bandy Date: Thu, 18 Dec 2014 05:48:06 +0000 Subject: [PATCH] Fix error messages to match assertions Closes #8 --- semver_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/semver_test.go b/semver_test.go index 858a5b9..0d6b4a6 100644 --- a/semver_test.go +++ b/semver_test.go @@ -176,13 +176,13 @@ func TestCompareHelper(t *testing.T) { t.Errorf("%q should be equal to %q", v, 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) { t.Errorf("%q should be greater than or equal to %q", v, 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) { 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) } 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) { - 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) { - t.Errorf("%q should be less than or equal %q", v1, v) + t.Errorf("%q should be greater than or equal %q", v1, v) } }