2 # Copyright (C) 2001-2010, Parrot Foundation.
7 t/pmc/hashiteratorkey.t - HashIteratorKey PMC
11 % prove t/pmc/hashiteratorkey.t
15 Do almost nothing test. HashIteratorKey is supplementary class for
16 iterating over Hash. Just check that we create it.
21 .include 'test_more.pir'
33 $P0 = new ['HashIteratorKey']
34 ok(1, "Can create HashIteratorKey directly")
44 is($S0, 'foo', 'HashIteratorKey.key works')
46 is($S0, 'bar', 'HashIteratorKey.value works')
54 hik = new ['HashIteratorKey']
56 # De facto behavior tested for code coverage
60 is(i, 1, 'HIK.key gives null when unitialized')
63 is(s, '', 'HIK gives empty string when unitialized')
67 is(i, -1, 'HIK get_integer gives -1')
75 # vim: expandtab shiftwidth=4 ft=pir: