Commit 6c947c9
committed
test: add prerelease version comparison edge case tests
The comparePrerelease function handles numeric vs string identifiers,
length differences, and mixed types, but only one basic prerelease
test existed. Add coverage for numeric comparison, string ordering,
numeric-before-string precedence, length comparison, and equal
prerelease identity.
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>1 parent d3fa454 commit 6c947c9
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
150 | 171 | | |
151 | 172 | | |
152 | 173 | | |
| |||
0 commit comments