summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-21 11:45:35 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-21 11:47:50 -0400
commitb35d374f486c3dcb1b2ba8ed5909903a9b34fc5b (patch)
tree6906fe19c24bb5cd89e9047e6f01b9478303e740 /t
parentb96d96f8332b9aa42ede436c645e7add2ffb4638 (diff)
downloadparse-keyword-b35d374f486c3dcb1b2ba8ed5909903a9b34fc5b.tar.gz
parse-keyword-b35d374f486c3dcb1b2ba8ed5909903a9b34fc5b.zip
default these to 1
Diffstat (limited to 't')
-rw-r--r--t/try/lib/Try.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/try/lib/Try.pm b/t/try/lib/Try.pm
index 20325aa..fc70082 100644
--- a/t/try/lib/Try.pm
+++ b/t/try/lib/Try.pm
@@ -24,7 +24,7 @@ sub try_parser {
lex_read_space;
- die "syntax error" unless lex_peek(1) eq '{';
+ die "syntax error" unless lex_peek eq '{';
$try = parse_block;
lex_read_space;
@@ -32,7 +32,7 @@ sub try_parser {
if (lex_peek(6) =~ /^catch\b/) {
lex_read(5);
lex_read_space;
- die "syntax error" unless lex_peek(1) eq '{';
+ die "syntax error" unless lex_peek eq '{';
$catch = parse_block;
}
@@ -41,7 +41,7 @@ sub try_parser {
if (lex_peek(8) =~ /^finally\b/) {
lex_read(7);
lex_read_space;
- die "syntax error" unless lex_peek(1) eq '{';
+ die "syntax error" unless lex_peek eq '{';
$finally = parse_block;
}