The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#! perl

use strict;
use warnings;
use Test::More;
use Statistics::R;

# Test that the IOs are well-oiled. In Statistics::R version 0.20, a slight
# imprecision in the regular expression to parse the output stream caused a
# problem that was apparent only once every few thousands times

my ($R, $input);

ok $R = Statistics::R->new();

ok $R->set('x', $input);

for my $i (1 .. 10_000) {
   is($R->get('x'), undef);
}

ok $R->stop();

done_testing;