Fixed platform test.

This commit is contained in:
Judson 2017-05-12 09:47:00 -07:00
parent 56d214b0ea
commit c39508b254
No known key found for this signature in database
GPG Key ID: 1817B08954BF0B7D
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ rec {
builtins.length attrs.platforms == 0 ||
builtins.any (platform:
platform.engine == rubyEngine &&
(!(platform ? "version") || platform.version.majMin == version.majMin)
(!(platform ? "version") || platform.version == version.majMin)
) attrs.platforms
);

View File

@ -44,7 +44,7 @@ let
( let gemSet = { test = { platforms = []; }; };
in
test.run "Filter matches empty platforms list" gemSet (set: functions.filterGemset {inherit ruby; groups = [];} set == gemSet))
( let gemSet = { test = { platforms = [{engine = ruby.rubyEngine; version = ruby.version;}]; }; };
( let gemSet = { test = { platforms = [{engine = ruby.rubyEngine; version = ruby.version.majMin;}]; }; };
in
test.run "Filter matches on platform" gemSet (set: functions.filterGemset {inherit ruby; groups = [];} set == gemSet))
( let gemSet = { test = { groups = ["x" "y"]; }; };