Skip to content

Commit

Permalink
Update to latest Fishtape
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebucaran committed Jan 12, 2021
1 parent 9582243 commit 117a6ea
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions test/spark.fish
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) = ▁▄▁

0 comments on commit 117a6ea

Please sign in to comment.