Skip to content

Commit

Permalink
[v6.d REVIEW] Clarify regex bug Failure cover…
Browse files Browse the repository at this point in the history
…doesn't apply to all implementations. Just those were this code
woul cause garbage collection to occur.

Orig: 98fec08b0
  • Loading branch information
zoffixznet committed Sep 29, 2018
1 parent 88f358b commit 3394e4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions S05-metasyntax/regex.t
Expand Up @@ -269,6 +269,9 @@ subtest '`**` quantifier' => {
'block-less empty range throws (greedy)';
}

# NOTE: this test assumes an implementation that emits a warning in
# Failure.DESTROY of unhandled Failure objects and one where the tested
# code would cause garbage collection of those Failures
is_run (try "" ~~ /. ** {NaN}/) for ^1000; print 'pass',
{:out('pass'), :err(''), :0status},
'wrong value for `**` quantifier does not leave behind unhandled Failures';
Expand Down

0 comments on commit 3394e4e

Please sign in to comment.