Skip to content

Commit

Permalink
Test negating nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Aug 27, 2018
1 parent 873aa6e commit f0f3843
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/nqp/081-radix.t
@@ -1,4 +1,4 @@
plan(32*3*2 + 3 + 7);
plan(33*3*2 + 3 + 7);

sub test_radix($radix,$str,$pos,$flags,$value,$mult,$offset,$desc) {
my $result := nqp::radix($radix,$str,$pos,$flags);
Expand Down Expand Up @@ -94,3 +94,5 @@ else {
for @strings {
is(nqp::coerce_is(nqp::coerce_si($_)), $_, "coerce_si and coerce_is round trip '$_'");
}

test_radix_both(10,'-1.0',3,5 ,0,1,4, 'bug when negating nothing');

0 comments on commit f0f3843

Please sign in to comment.