Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created January 13, 2010 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashgti/276594 to your computer and use it in GitHub Desktop.
Save ashgti/276594 to your computer and use it in GitHub Desktop.
Index: t/op/lexicals.t
===================================================================
--- t/op/lexicals.t (revision 43444)
+++ t/op/lexicals.t (working copy)
@@ -%ld,%ld +%ld,%ld @@
plan( skip_all => 'lexicals not thawed properly from PBC, TT #1171' )
if $ENV{TEST_PROG_ARGS} =~ /--run-pbc/;
-plan( tests => 51 );
+plan( tests => 57 );
=head1 NAME
@@ -%ld,%ld +%ld,%ld @@
main
OUTPUT
+pir_error_output_like( <<'CODE', <<'OUTPUT', '.lex should not accept $S#');
+.sub 'main'
+ $S0 = 'hello world'
+ .lex '$var', $S0
+.end
+CODE
+/error/
+OUTPUT
+
+pir_error_output_like( <<'CODE', <<'OUTPUT', '.lex should not accept $I#');
+.sub 'main'
+ $I0 = 5
+ .lex '$var', $I0
+.end
+CODE
+/error/
+OUTPUT
+
+pir_error_output_like( <<'CODE', <<'OUTPUT', '.lex should not accept $N#');
+.sub 'main'
+ $N0 = 3.14
+ .lex '$pi', $N0
+.end
+CODE
+/error/
+OUTPUT
+
+pir_error_output_like( <<'CODE', <<'OUTPUT', 'store_lex should not accept $S#');
+.sub 'main'
+ $S0 = 'hello world'
+ store_lex '$var', $S0
+.end
+CODE
+/error/
+OUTPUT
+
+pir_error_output_like( <<'CODE', <<'OUTPUT', 'store_lex should not accept $I#');
+.sub 'main'
+ $I0 = 5
+ store_lex '$var', $I0
+.end
+CODE
+/error/
+OUTPUT
+
+pir_error_output_like( <<'CODE', <<'OUTPUT', 'store_lex should not accept $N#');
+.sub 'main'
+ $N0 = 3.14
+ store_lex '$pi', $N0
+.end
+CODE
+/error/
+OUTPUT
+
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment