The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

# -*- mode: perl; -*-
# check that requiring Math::BigRat and then calling new() works
use strict;
use Test::More tests => 1;
require Math::BigRat;
my $x = Math::BigRat -> new(2);
is($x, '2', '$x is 2');