Skip to content

Commit

Permalink
[t/spec] slight edits to S06-advanced_subroutine_features/caller.t
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@25071 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
finanalyst committed Jan 27, 2009
1 parent 97563ca commit 99d737e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions S06-advanced_subroutine_features/caller.t
Expand Up @@ -9,15 +9,15 @@ plan 19;
# caller.subname
sub a_sub { b_sub() }
sub b_sub { try { caller.subname } }
#?pugs: todo
is ~a_sub(), "foo", "caller.sub works";
#?pugs todo "feature"
is ~a_sub(), "a_sub", "caller.sub works";

# caller.file
#?pugs: todo
#?pugs todo "feature"
ok index(~(try { caller.file }), "caller") >= 0, "caller.file works";

# caller.line (XXX: make sure to edit the expected line number!)
#?pugs: 2 todo
#?pugs 2 todo "feature"
sub call_line { caller.line };
is call_line(), 22, "caller.line works";

Expand Down

0 comments on commit 99d737e

Please sign in to comment.