let N or U pass for magnetic media here
authorJason Etheridge <jason@EquinoxOLI.org>
Thu, 26 May 2022 16:09:10 +0000 (12:09 -0400)
committerJason Etheridge <jason@EquinoxOLI.org>
Thu, 26 May 2022 19:26:04 +0000 (15:26 -0400)
Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
t/03checkout.t

index f1b65a8..24ffd06 100755 (executable)
@@ -147,7 +147,7 @@ $test = clone($checkout_test_template);
 
 $test->{id} = 'Checkout: valid patron, invalid item';
 $test->{msg} =~ s/AB$item_barcode/ABno-barcode/o;
-$test->{pat} = qr/^120NUN$datepat/;
+$test->{pat} = qr/^120N[NU]N$datepat/;
 delete $test->{fields};
 $test->{fields} = [
     $SIPtest::field_specs{(FID_INST_ID)},
@@ -176,7 +176,7 @@ push @tests, $test;
 $test = clone($checkout_test_template);
 $test->{id} = 'Checkout: invalid patron, valid item';
 $test->{msg} =~ s/AA$user_barcode/AAbad_barcode/;
-$test->{pat} = qr/^120NUN$datepat/;
+$test->{pat} = qr/^120N[NU]N$datepat/;
 delete $test->{fields};
 $test->{fields} = [
     $SIPtest::field_specs{(FID_INST_ID)},