2 # Copyright (C) 2001-2008, Parrot Foundation.
7 use lib qw( . lib ../lib ../../lib );
10 use Parrot::Test tests => 8;
14 t/op/say.t - Testing the say pseudo-opcode
22 Tests various PMCs and registers with say.
26 pir_output_is( <<'CODE', <<'OUTPUT', 'say with a literal string' );
34 pir_output_is( <<'CODE', <<'OUTPUT', 'say with a literal integer' );
42 pir_output_is( <<'CODE', <<'OUTPUT', 'say with a literal number' );
50 pir_output_is( <<'CODE', <<'OUTPUT', 'say with a temporary string register' );
52 $S5 = "string register"
59 pir_output_is( <<'CODE', <<'OUTPUT', 'say with a temporary integer register' );
68 pir_output_is( <<'CODE', <<'OUTPUT', 'say with a temporary number register' );
77 pir_output_is( <<'CODE', <<'OUTPUT', 'say and print with a number register' );
89 pir_error_output_like( <<'CODE', <<'OUTPUT', 'say with PMCNULL argument' );
100 # cperl-indent-level: 4
103 # vim: expandtab shiftwidth=4: