tvl-depot/tvix/eval/eval-okay-builtins-compareVersions.nix
ThoFrank ef80d00b06 feat(tvix_eval): Support builtins.compareVersions
Added an Iterator over &str wich yields the VersionParts.

Change-Id: I8043d423127446a173d01d290aab10de0c24a6fc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6619
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-09-17 14:48:58 +00:00

12 lines
445 B
Nix

[
(builtins.compareVersions "1.2.3" "1.2.3")
(builtins.compareVersions "1.2.2" "1.2.3")
(builtins.compareVersions "1.2.3" "1.2.40")
(builtins.compareVersions "1.2.3" ".1.2.3")
(builtins.compareVersions "1.2.3" "1..2.3")
(builtins.compareVersions "1.2.3" "1.2.3.")
(builtins.compareVersions "1.2.3" "1.2")
(builtins.compareVersions "1.2.3" "1.2.a")
(builtins.compareVersions "1a.b" "1a.2")
(builtins.compareVersions "1" "")
]