-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9582243
commit 117a6ea
Showing
1 changed file
with
12 additions
and
14 deletions.
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
@mesg $current_filename | ||
|
||
@test one (spark 1) = ▃ | ||
@test constant (spark 5 5) = ▃▃ | ||
@test pyramid (spark 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1) = ▁▂▃▄▅▆▇█▇▆▅▄▃▂▁ | ||
@test distance (spark 1 5 10 15 20) = (spark 10 50 100 150 200) | ||
@test upstairs (spark 990 993 996) = ▁▄█ | ||
@test fedora (spark -5 3 2 -1 -5) = ▁█▇▄▁ | ||
@test downstairs (spark -500 -501 -502) = █▄▁ | ||
@test sinewave (spark 2 -1 -4 -6 -4 -1 2 5 6 5 2 -1 -4 -6 -4 -1 2) = ▆▄▂▁▂▄▆▇█▇▆▄▂▁▂▄▆ | ||
@test stdin (seq 8 | spark) = ▁▂▃▄▅▆▇█ | ||
@test indefinite (spark 25 45) = ▁█ | ||
@test definite (spark 0 25 45) = ▁▅█ | ||
@test "one" (spark 1) = ▃ | ||
@test "constant" (spark 5 5) = ▃▃ | ||
@test "pyramid" (spark 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1) = ▁▂▃▄▅▆▇█▇▆▅▄▃▂▁ | ||
@test "distance" (spark 1 5 10 15 20) = (spark 10 50 100 150 200) | ||
@test "upstairs" (spark 990 993 996) = ▁▄█ | ||
@test "fedora" (spark -5 3 2 -1 -5) = ▁█▇▄▁ | ||
@test "downstairs" (spark -500 -501 -502) = █▄▁ | ||
@test "sinewave" (spark 2 -1 -4 -6 -4 -1 2 5 6 5 2 -1 -4 -6 -4 -1 2) = ▆▄▂▁▂▄▆▇█▇▆▄▂▁▂▄▆ | ||
@test "stdin" (seq 8 | spark) = ▁▂▃▄▅▆▇█ | ||
@test "indefinite" (spark 25 45) = ▁█ | ||
@test "definite" (spark 0 25 45) = ▁▅█ | ||
@test "25,45 min=0" (spark --min=0 -- 25 45) = ▅█ | ||
@test "5,6,7 min=0" (spark --min=0 -- 5 6 7) = ▆▇█ | ||
@test squash (spark --max=10 -- 1 5 1) = ▁▄▁ | ||
@test "squash" (spark --max=10 -- 1 5 1) = ▁▄▁ |