Got this code:
unit module Command::CanRun;
enum OS <win nix>;
sub determine-os {
return 'nix' when $*SPEC.gist.contains('unix', :i);
return 'win' when $*DISTRO.is-win;
}
I would like to unit test this:
ok Command::CanRun::determine-os, 'can determine os';
However, I can't do this without exporting the determine-os sub:
Could not find symbol '&determine-os' in 'Command::CanRun'
Haven't been able to find any guidance on how to do this for non-exported subs in a module. Thanks.