diff --git a/t/h-002.hawk b/t/h-002.hawk index 2f0d50af..e070d63f 100644 --- a/t/h-002.hawk +++ b/t/h-002.hawk @@ -218,6 +218,10 @@ function main() tap_ensure (x, "the tiger-tiger pounces on the dog", @SCRIPTNAME, @SCRIPTLINE); x = gensub(/(tiger|dog)/, "\\1-\\1", 10, "the tiger pounces on the dog"); tap_ensure (x, "the tiger pounces on the dog", @SCRIPTNAME, @SCRIPTLINE); + x = gensub(/(tiger|(dog))/, "\\1-\\2", 'g', "the tiger pounces on the dog"); + tap_ensure (x, "the tiger- pounces on the dog-dog", @SCRIPTNAME, @SCRIPTLINE); + x = gensub(/(tiger|(dog))/, "[&]", 'g', "the tiger pounces on the dog"); + tap_ensure (x, "the [tiger] pounces on the [dog]", @SCRIPTNAME, @SCRIPTLINE); } {