Insulate DBIC::Carp from rogue can() overrides
[dbsrgits/DBIx-Class.git] / xt / extra / internals / bool.t
CommitLineData
293cb2f1 1BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2
3use strict;
4use warnings;
5
6use Test::More;
7use DBIx::Class::_Util qw( true false );
8use Scalar::Util 'refaddr';
9
10my @things = ( true, false, true, false, true, false );
11
12for (my $i = 0; $i < $#things; $i++ ) {
13 for my $j ( $i+1 .. $#things ) {
14 cmp_ok
15 refaddr( $things[$i] ),
16 '!=',
17 refaddr( $things[$j] ),
18 "Boolean thingy '$i' distinct from '$j'",
19 ;
20 }
21}
22
23done_testing;