The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#!/usr/bin/perl
use strict;
use Test::More tests => 5;
BEGIN { $ENV{PERL_BSON_BACKEND} = "" }
BEGIN { $INC{"BSON/XS.pm"} = undef }
use BSON;
ok(BSON::Bool->new(1));
ok(!BSON::Bool->new(0));
ok(BSON::Bool->true);
ok(!BSON::Bool->false);
my $t = BSON::Bool->true;
my $f = BSON::Bool->false;
ok( $t && !$f );