Bugzilla – Attachment 36771 Details for
Bug 13814
Add unit tests for C4::Boolean
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13814 : Add Lines Alignment
Bug-13814--Add-Lines-Alignment.patch (text/plain), 2.68 KB, created by
Julian FIOL
on 2015-03-10 16:00:27 UTC
(
hide
)
Description:
Bug 13814 : Add Lines Alignment
Filename:
MIME Type:
Creator:
Julian FIOL
Created:
2015-03-10 16:00:27 UTC
Size:
2.68 KB
patch
obsolete
>From 8a2b64a08bd350f0791ee555b1faaa4505df0e93 Mon Sep 17 00:00:00 2001 >From: Julian FIOL <julian.fiol@biblibre.com> >Date: Tue, 10 Mar 2015 16:57:40 +0100 >Subject: [PATCH] Bug 13814 : Add Lines Alignment > >--- > t/Boolean.t | 36 ++++++++++++++++++------------------ > 1 file changed, 18 insertions(+), 18 deletions(-) > >diff --git a/t/Boolean.t b/t/Boolean.t >index af81f13..2e47192 100755 >--- a/t/Boolean.t >+++ b/t/Boolean.t >@@ -6,23 +6,23 @@ use Test::More tests => 19; > > BEGIN { use_ok( 'C4::Boolean', qw( true_p ) ); } > >-is( true_p('0'), '0', 'recognizes \'0\' as false' ); >-is( true_p('nil'), '0', 'recognizes \'nil\' as false' ); >-is( true_p('false'), '0', 'recognizes \'false\' as false' ); >-is( true_p('off'), '0', 'recognizes \'off\' as false' ); >-is( true_p('no'), '0', 'recognizes \'no\' as false' ); >-is( true_p('n'), '0', 'recognizes \'n\' as false' ); >-is( true_p('NO'), '0', 'verified case insensitivity' ); >+is( true_p('0') , '0' , 'recognizes \'0\' as false' ); >+is( true_p('nil') , '0' , 'recognizes \'nil\' as false' ); >+is( true_p('false'), '0' , 'recognizes \'false\' as false' ); >+is( true_p('off') , '0' , 'recognizes \'off\' as false' ); >+is( true_p('no') , '0' , 'recognizes \'no\' as false' ); >+is( true_p('n') , '0' , 'recognizes \'n\' as false' ); >+is( true_p('NO') , '0' , 'verified case insensitivity' ); > >-is( true_p('1'), '1', 'recognizes \'1\' as true' ); >-is( true_p('-1'), '1', 'recognizes \'-1\' as true' ); >-is( true_p('t'), '1', 'recognizes \'t\' as true' ); >-is( true_p('true'), '1', 'recognizes \'true\' as true' ); >-is( true_p('on'), '1', 'recognizes \'on\' as true' ); >-is( true_p('yes'), '1', 'recognizes \'yes\' as true' ); >-is( true_p('y'), '1', 'recognizes \'y\' as true' ); >-is( true_p('YES'), '1', 'verified case insensitivity' ); >+is( true_p('1') , '1' , 'recognizes \'1\' as true' ); >+is( true_p('-1') , '1' , 'recognizes \'-1\' as true' ); >+is( true_p('t') , '1' , 'recognizes \'t\' as true' ); >+is( true_p('true') , '1' , 'recognizes \'true\' as true' ); >+is( true_p('on') , '1' , 'recognizes \'on\' as true' ); >+is( true_p('yes') , '1' , 'recognizes \'yes\' as true' ); >+is( true_p('y') , '1' , 'recognizes \'y\' as true' ); >+is( true_p('YES') , '1' , 'verified case insensitivity' ); > >-is( true_p(undef), undef, 'recognizes undefined as not boolean' ); >-is( true_p('foo'), undef, 'recognizes \'foo\' as not boolean' ); >-is( true_p([]), undef, 'recognizes a reference as not a boolean' ); >+is( true_p(undef) , undef, 'recognizes undefined as not boolean' ); >+is( true_p('foo') , undef, 'recognizes \'foo\' as not boolean' ); >+is( true_p([]) , undef, 'recognizes a reference as not a boolean' ); >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13814
:
36758
|
36765
|
36771
|
36773
|
36774
|
36868
|
36869
|
36891