Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fixed a test in say.t, and a new test note.t
- Loading branch information
1 parent
9431004
commit c2f2973
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| use v6; | ||
|
|
||
| # L<S32::IO/IO/=item note> | ||
|
|
||
| # doesn't use Test.pm and plan() intentionally | ||
|
|
||
| say "1..8"; | ||
|
|
||
| # Tests for say | ||
| { | ||
| note "ok 1 - basic form of note"; | ||
| } | ||
|
|
||
| { | ||
| note "o", "k 2 - note with multiple parame", "ters (1)"; | ||
|
|
||
| my @array = ("o", "k 3 - say with multiple parameters (2)"); | ||
| note @array; | ||
| } | ||
|
|
||
| { | ||
| my $arrayref = <ok 4 - note stringifies its args>; | ||
| note $arrayref; | ||
| } | ||
|
|
||
| { | ||
| "ok 5 - method form of note".note; | ||
| } | ||
|
|
||
|
|
||
| "ok 6 - Mu.note\n".note; | ||
|
|
||
| grammar A { | ||
| token TOP { .+ }; | ||
| } | ||
|
|
||
| A.parse("ok 7 - Match.note\n").note; | ||
|
|
||
| # vim: ft=perl6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters