Skip to content

Commit

Permalink
Don't append Nil to the string
Browse files Browse the repository at this point in the history
Set the value to "<not set>" within the test description when a library cannot be found.
  • Loading branch information
rbt committed Nov 23, 2022
1 parent 9fe1b0c commit a4ec291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/03-lib-util.t
Expand Up @@ -11,6 +11,6 @@ my $sub = Util.at-runtime(is-win ?? 'libmysql' !! 'mysqlclient', 'mysql_init', 1
does-ok $sub, Callable;
my $lib = $sub.();
todo "Can fail if the mysqlclient library isn't installed", 1;
like $lib, / 'mysql' /, "Indeed $lib";
like $lib, / 'mysql' /, "Indeed "~ ($lib // '<not set>');
todo "Can fail if the pq library isn't installed", 1;
ok $lib = Util.try-versions('pq', 'PQstatus', 4,5,6), "Postgres is $lib";
ok $lib = Util.try-versions('pq', 'PQstatus', 4,5,6), "Postgres is "~ ($lib // '<not set>');

0 comments on commit a4ec291

Please sign in to comment.