### ----------------------------------------------------
### -- Polyglot::Regexen
### -- Licenses: Artistic-2.0
### -- Authors: Matthew Stuckwisch
### -- File: t/ecma/04-assertions.rakutest
### ----------------------------------------------------
use v6.d;
use lib 't/ecma';
use Test;
use Support;

is ecma2raku('a(?=b)'), '/a<?before b>/', 'Simple lookahead';
is ecma2raku('a(?!b)'), '/a<!before b>/', 'Simple negative lookahead';
is ecma2raku('a(?<=b)'), '/a<?after b>/', 'Simple lookbehind';
is ecma2raku('a(?<!b)'), '/a<!after b>/', 'Simple negative lookbehind';

done-testing


