Skip to content

Commit

Permalink
add tests for \d[a-z] and \d.\d[a-z]
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider authored and mxcl committed May 9, 2023
1 parent 02d0173 commit 38304b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/semver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Deno.test("semver", async test => {
assertEquals(new SemVer("1").toString(), "1.0.0")
assertEquals(new SemVer("v1").toString(), "1.0.0")

assertEquals(new SemVer("9e").toString(), "9e")
assertEquals(new SemVer("9e").components, [9,5])
assertEquals(new SemVer("3.3a").toString(), "3.3a")
assertEquals(new SemVer("3.3a").components, [3,3,1])
assertEquals(new SemVer("1.1.1q").toString(), "1.1.1q")
assertEquals(new SemVer("1.1.1q").components, [1,1,1,17])
})
Expand Down

0 comments on commit 38304b4

Please sign in to comment.