Fixed platform test.
This commit is contained in:
parent
56d214b0ea
commit
c39508b254
@ -7,7 +7,7 @@ rec {
|
|||||||
builtins.length attrs.platforms == 0 ||
|
builtins.length attrs.platforms == 0 ||
|
||||||
builtins.any (platform:
|
builtins.any (platform:
|
||||||
platform.engine == rubyEngine &&
|
platform.engine == rubyEngine &&
|
||||||
(!(platform ? "version") || platform.version.majMin == version.majMin)
|
(!(platform ? "version") || platform.version == version.majMin)
|
||||||
) attrs.platforms
|
) attrs.platforms
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ let
|
|||||||
( let gemSet = { test = { platforms = []; }; };
|
( let gemSet = { test = { platforms = []; }; };
|
||||||
in
|
in
|
||||||
test.run "Filter matches empty platforms list" gemSet (set: functions.filterGemset {inherit ruby; groups = [];} set == gemSet))
|
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
|
in
|
||||||
test.run "Filter matches on platform" gemSet (set: functions.filterGemset {inherit ruby; groups = [];} set == gemSet))
|
test.run "Filter matches on platform" gemSet (set: functions.filterGemset {inherit ruby; groups = [];} set == gemSet))
|
||||||
( let gemSet = { test = { groups = ["x" "y"]; }; };
|
( let gemSet = { test = { groups = ["x" "y"]; }; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user