|
1 | 1 | package com.coder.gateway.sdk |
2 | 2 |
|
3 | | -import spock.lang.Ignore |
4 | | - |
5 | 3 | class CoderSemVerTest extends spock.lang.Specification { |
6 | 4 |
|
7 | 5 | def 'semver versions are valid'() { |
@@ -157,58 +155,4 @@ class CoderSemVerTest extends spock.lang.Specification { |
157 | 155 | 'v2147483647.2147483647.2147483647' || new CoderSemVer(2147483647L, 2147483647L, 2147483647L) |
158 | 156 | 'v1.0.0-0A.is.legal' || new CoderSemVer(1L, 0L, 0L) |
159 | 157 | } |
160 | | - |
161 | | - @Ignore |
162 | | - def 'two initial development versions are compatible when first minor is equal to the second minor'() { |
163 | | - expect: |
164 | | - new CoderSemVer(0, 1).isCompatibleWith(new CoderSemVer(0, 1)) |
165 | | - } |
166 | | - |
167 | | - @Ignore |
168 | | - def 'two initial development versions are not compatible when first minor is less than the second minor'() { |
169 | | - expect: |
170 | | - !new CoderSemVer(0, 1).isCompatibleWith(new CoderSemVer(0, 2)) |
171 | | - } |
172 | | - |
173 | | - @Ignore |
174 | | - def 'two initial development versions are not compatible when first minor is bigger than the second minor'() { |
175 | | - expect: |
176 | | - !new CoderSemVer(0, 2).isCompatibleWith(new CoderSemVer(0, 1)) |
177 | | - } |
178 | | - |
179 | | - @Ignore |
180 | | - def 'versions are not compatible when one version is initial phase of development and the other is not, even though the minor is the same'() { |
181 | | - expect: |
182 | | - !new CoderSemVer(0, 2).isCompatibleWith(new CoderSemVer(1, 2)) |
183 | | - |
184 | | - and: |
185 | | - !new CoderSemVer(1, 2).isCompatibleWith(new CoderSemVer(0, 2)) |
186 | | - } |
187 | | - |
188 | | - @Ignore |
189 | | - def 'two versions which are not in development phase are compatible when first major is less or equal to the other, regardless of the minor'() { |
190 | | - expect: 'versions compatible when same major and same minor' |
191 | | - new CoderSemVer(1, 1).isCompatibleWith(new CoderSemVer(1, 1)) |
192 | | - |
193 | | - and: 'they are also compatible when major is the same but minor is different' |
194 | | - new CoderSemVer(1, 1).isCompatibleWith(new CoderSemVer(1, 2)) |
195 | | - |
196 | | - and: 'they are also compatible when first major is less than the second major but with same minor' |
197 | | - new CoderSemVer(1, 1).isCompatibleWith(new CoderSemVer(2, 1)) |
198 | | - |
199 | | - and: 'they are also compatible when first major is less than the second major and also with a different minor' |
200 | | - new CoderSemVer(1, 1).isCompatibleWith(new CoderSemVer(2, 2)) |
201 | | - } |
202 | | - |
203 | | - @Ignore |
204 | | - def 'two versions which are not in development phase are not compatible when first major is greater than the second major, regardless of the minor'() { |
205 | | - expect: 'versions are not compatible when first major is bigger than the second but with same minor' |
206 | | - !new CoderSemVer(2, 1).isCompatibleWith(new CoderSemVer(1, 1)) |
207 | | - |
208 | | - and: 'they are also not compatible when minor first minor is less than the second minor' |
209 | | - !new CoderSemVer(2, 1).isCompatibleWith(new CoderSemVer(1, 2)) |
210 | | - |
211 | | - and: 'also also not compatible when minor first minor is bigger than the second minor' |
212 | | - !new CoderSemVer(2, 3).isCompatibleWith(new CoderSemVer(1, 2)) |
213 | | - } |
214 | 158 | } |
0 commit comments