-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* stdlib: Add list functions * fix performance * Add difference function * address comments * timing * bonk
- Loading branch information
Showing
6 changed files
with
152 additions
and
4 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
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,2 +1,2 @@ | ||
# (1) | ||
$ sleep 10 | ||
$ sleep 1000 |
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
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,4 +1,22 @@ | ||
#! /bin/sh | ||
|
||
WAKE="${1:+$1/wake}" | ||
"${WAKE:-wake}" --stdout=warning,report test | ||
|
||
"${WAKE:-wake}" --stdout=warning,report test1 | ||
"${WAKE:-wake}" --stdout=warning,report test2 | ||
"${WAKE:-wake}" --stdout=warning,report test3 | ||
"${WAKE:-wake}" --stdout=warning,report test4 | ||
"${WAKE:-wake}" --stdout=warning,report test5 | ||
"${WAKE:-wake}" --stdout=warning,report test6 | ||
"${WAKE:-wake}" --stdout=warning,report test7 | ||
"${WAKE:-wake}" --stdout=warning,report test8 | ||
"${WAKE:-wake}" --stdout=warning,report test9 | ||
"${WAKE:-wake}" --stdout=warning,report test10 | ||
"${WAKE:-wake}" --stdout=warning,report test11 | ||
"${WAKE:-wake}" --stdout=warning,report test12 | ||
"${WAKE:-wake}" --stdout=warning,report test13 | ||
"${WAKE:-wake}" --stdout=warning,report test14 | ||
"${WAKE:-wake}" --stdout=warning,report test15 | ||
"${WAKE:-wake}" --stdout=warning,report test16 | ||
"${WAKE:-wake}" --stdout=warning,report test17 | ||
"${WAKE:-wake}" --stdout=warning,report test18 |
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 +1,18 @@ | ||
(0, 1, 2, Nil), (3, 4, 5, Nil), (6, 7, 8, Nil), (9, 10, Nil), Nil | ||
0, 1, 2, Nil | ||
0, 1, 2, Nil | ||
0, 2, Nil | ||
"", "bat", Nil | ||
True | ||
True | ||
False | ||
False | ||
True | ||
True | ||
False | ||
True | ||
False | ||
3, Nil | ||
Nil | ||
0, 1, Nil | ||
"bar", Nil |
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 +1,25 @@ | ||
export def test _ = seq 11 | groupBy (\l\r icmp (l/3) (r/3)) | ||
# groupBy tests | ||
export def test1 _ = seq 11 | groupBy (\l\r icmp (l/3) (r/3)) | ||
|
||
# intersect tests | ||
export def test2 _ = intersect icmp (seq 3) (seq 4) | ||
export def test3 _ = intersect icmp (seq 3) (seq 3) | ||
export def test4 _ = intersect icmp (seq 3) (4, 2, 0, Nil) | ||
export def test5 _ = intersect scmp ("", "bar", "bat", Nil) ("", "foo", "bat", Nil) | ||
|
||
# subset tests | ||
export def test6 _ = subset icmp (seq 3) (seq 4) | ||
export def test7 _ = subset icmp (seq 3) (seq 3) | ||
export def test8 _ = subset icmp (seq 3) (seq 2) | ||
export def test9 _ = subset icmp (seq 3) (4, 2, 0, Nil) | ||
export def test10 _ = subset icmp Nil Nil | ||
export def test11 _ = subset icmp Nil (seq 1) | ||
export def test12 _ = subset icmp (seq 1) Nil | ||
export def test13 _ = subset scmp ("", Nil) ("", "foo", "bar", Nil) | ||
export def test14 _ = subset scmp ("", "bat", Nil) ("", "foo", "bar", Nil) | ||
|
||
# subtract tests | ||
export def test15 _ = subtract icmp (seq 4) (seq 3) | ||
export def test16 _ = subtract icmp (seq 3) (seq 3) | ||
export def test17 _ = subtract icmp (seq 3) (2, Nil) | ||
export def test18 _ = subtract scmp ("", "bar", "bat", Nil) ("", "foo", "bat", Nil) |