use strict;
use warnings;
-use Test::More tests => 2 * 19 + 5 + 1;
+use Test::More tests => 2 * 20 + 6 + 1;
use Variable::Magic qw/cast dispell MGf_COPY VMG_UVAR/;
'assign element to';
is $s, $n{foo}, 'hash: assign element to correctly';
+$s = check { exists $h{foo} } +{ (exists => 1) x VMG_UVAR }, 'exists';
+ok $s, 'hash: exists correctly';
+
my %b;
check { %b = %h } { }, 'assign to';
is_deeply \%b, \%n, 'hash: assign to correctly';