@@ -246,6 +246,46 @@ Feature: Targeting rules
246246 | 3 .1 .0 | major |
247247 | 4 .0 .0 | none |
248248
249+ @semver @semver-edge-cases @semver-v-prefix
250+ Scenario Outline : sem_ver v-prefix handling
251+ Given a String-flag with key "semver-v-prefix-flag" and a default value "fallback"
252+ And a context containing a key "version" , with type "String" and with value "<version>"
253+ When the flag was evaluated with details
254+ Then the resolved details value should be "<value>"
255+ Examples :
256+ | version | value |
257+ | 1 .0 .0 | match |
258+ | v1 .0 .0 | match |
259+ | V1 .0 .0 | match |
260+ | 2 .0 .0 | no -match |
261+
262+ @semver @semver-edge-cases @semver-partial-version
263+ Scenario Outline : sem_ver partial version handling
264+ Given a String-flag with key "semver-partial-version-flag" and a default value "fallback"
265+ And a context containing a key "version" , with type "<type>" and with value "<version>"
266+ When the flag was evaluated with details
267+ Then the resolved details value should be "<value>"
268+ Examples :
269+ | version | type | value |
270+ | 1 .5 .0 | String | match |
271+ | 1 .0 .0 | String | match |
272+ | 1 .0 | String | match |
273+ | 1 | String | match |
274+ | 1 | Integer | match |
275+ | 2 .0 .0 | String | no -match |
276+
277+ @semver @semver-edge-cases @semver-build-metadata
278+ Scenario Outline : sem_ver build metadata ignored
279+ Given a String-flag with key "semver-build-metadata-flag" and a default value "fallback"
280+ And a context containing a key "version" , with type "String" and with value "<version>"
281+ When the flag was evaluated with details
282+ Then the resolved details value should be "<value>"
283+ Examples :
284+ | version | value |
285+ | 1 .0 .0 | match |
286+ | 1 .0 .0 +other | match |
287+ | 2 .0 .0 | no -match |
288+
249289 Scenario Outline : Time-based operations
250290 Given a Integer-flag with key "timestamp-flag" and a default value "0"
251291 And a context containing a key "time" , with type "Integer" and with value "<time>"
0 commit comments