Skip to content

Commit

Permalink
Because, really, there are few more effective ways in software develo…
Browse files Browse the repository at this point in the history
…pment to enshrine your immaturity than by putting profanity in the source code...
  • Loading branch information
jayallen committed Apr 23, 2010
1 parent 69ac3a0 commit f9931d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/07-builder.t
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,20 @@ ok(ref($tokens->[0][1]) eq 'HASH');
is($tokens->[0][1]{yes}, 'foo\'s bar');

$tokens = $builder->compile($ctx, <<'TEXT');
time to kick out the jams, motherfuckers
time to kick out the jams
<$MTFoo$>
TEXT
ok($tokens && ref($tokens) eq 'ARRAY');
ok(@$tokens == 3);
ok($tokens->[0][0] eq 'TEXT');
ok($tokens->[0][1] eq "time to kick out the jams, motherfuckers\n");
ok($tokens->[0][1] eq "time to kick out the jams\n");
ok($tokens->[1][0] eq 'Foo');
ok($tokens->[2][0] eq 'TEXT');
ok($tokens->[2][1] eq "\n");
is($builder->build($ctx, $tokens),
"time to kick out the jams, motherfuckers\nfoo\n");
"time to kick out the jams\nfoo\n");
is($builder->build($ctx, $tokens, { Foo => 0 }),
"time to kick out the jams, motherfuckers\n\n");
"time to kick out the jams\n\n");

# $tokens = $builder->compile($ctx, '<MTBars>');
# ok(!$tokens);
Expand Down

0 comments on commit f9931d1

Please sign in to comment.