Subject: | t/EZID.t started to fail |
Currently the test suite fails:
...
# Failed test at t/EZID.t line 15.
# Looks like you failed 1 test of 9.
t/EZID.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/9 subtests
...
Diagnostics is sparse --- I think it would be better to use like() instead of ok() for regexp matches:
diff --git a/t/EZID.t b/t/EZID.t
index 6361c7d..a2a53df 100644
--- a/t/EZID.t
+++ b/t/EZID.t
@@ -12,11 +12,11 @@ ok(not defined $response);
$response = $ezid->get('foo');
ok(not defined $response);
-ok($ezid->error_msg =~ /unrecognized identifier scheme/);
+like($ezid->error_msg, qr/unrecognized identifier scheme/);
$response = $ezid->get('ark:/99999/unknownidentifier');
ok(not defined $response);
-ok($ezid->error_msg =~ /no such identifier/);
+like($ezid->error_msg, qr/no such identifier/);
$response = $ezid->create('foo');
ok(not defined $response);
If this is applied then we see:
not ok 4
# Failed test at t/EZID.t line 15.
# 'error: bad request - invalid identifier'
# doesn't match '(?^u:unrecognized identifier scheme)'
So it looks just like changed wording in the error message.