fix tests that tested lies!

This commit is contained in:
David Glasser
2014-08-21 17:09:23 -07:00
parent 5d5d1876da
commit 628be93f61

View File

@@ -28,7 +28,7 @@ Tinytest.add("Smart Package version string parsing - compatible version, compati
t("foo@1.2.3", { name: "foo", version: "1.2.3", type: "compatible-with" });
t("foo-1233@1.2.3", { name: "foo-1233", version: "1.2.3", type: "compatible-with" });
t("foo-bar@3.2.1", { name: "foo-bar", version: "3.2.1", type: "compatible-with" });
t("42@0.2.0", { name: "42", version: "0.2.0", type: "compatible-with" });
FAIL("42@0.2.0");
FAIL("foo@1.2.3.4");
FAIL("foo@1.4");
FAIL("foo@1");
@@ -44,7 +44,7 @@ Tinytest.add("Smart Package version string parsing - compatible version, exactly
t("foo@=1.2.3", { name: "foo", version: "1.2.3", type: "exactly" });
t("foo-bar@=3.2.1", { name: "foo-bar", version: "3.2.1", type: "exactly" });
t("42@=0.2.0", { name: "42", version: "0.2.0", type: "exactly" });
FAIL("42@=0.2.0");
FAIL("foo@=1.2.3.4");
FAIL("foo@=1.4");
FAIL("foo@=1");
@@ -80,7 +80,7 @@ Tinytest.add("Smart Package version string parsing - compatible version, at-leas
t("foo@>=1.2.3", { name: "foo", version: "1.2.3", type: "at-least" });
t("foo-bar@>=3.2.1", { name: "foo-bar", version: "3.2.1", type: "at-least" });
t("42@>=0.2.0", { name: "42", version: "0.2.0", type: "at-least" });
FAIL("42@>=0.2.0");
FAIL("foo@>=1.2.3.4");
FAIL("foo@>=1.4");
FAIL("foo@>=1");