### ----------------------------------------------------
### -- LibraryCheck
### -- Licenses: Artistic-2.0
### -- Authors: Jonathan Stowe <jns+git@gellyfish.co.uk>
### -- File: t/010-basic.t
### ----------------------------------------------------
#!raku

use v6;

use Test;

use LibraryCheck;

todo("this is not at all cross platform");
ok(library-exists('crypt'), "ok for a known existing library");
ok(!library-exists('XzippyYayaya'), "not ok for a bogus one");
todo("this is not at all cross platform");
lives-ok { library-exists('crypt', :exception) }, "ok for a known existing library with :exception";
throws-like {  library-exists('XzippyYayaya', :exception) }, X::NoLibrary, "bogus one throws X::NoLibrary with :exception";

done-testing();
# vim: expandtab shiftwidth=4 ft=raku


