Skip to content

Commit dd2f0e5

Browse files
committed
feat(tests): adding tests for the rosetta code solutions and the examples ; removing duplicated examples and unmaintained ones
1 parent a573e2d commit dd2f0e5

19 files changed

+221
-350
lines changed

examples/99bottles.ark

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# ArkScript examples
2+
3+
The examples in this folder are tested by [the unittests](../tests/unittests/ExamplesSuite.cpp).
4+
5+
You can find more examples in the tests resources, where all the [Rosetta Code](https://rosettacode.org/wiki/Category:ArkScript) ArkScript solutions are located: [resources/RosettaSuite](../tests/unittests/resources/RosettaSuite).

examples/ackermann.ark

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/blockchain.ark

Lines changed: 0 additions & 167 deletions
This file was deleted.

examples/counter.ark

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/error.ark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# very often, and this is a convention,
33
# if an imported file starts with a capital letter,
44
# it shall be a file in the standard library.
5-
(import std.Exceptions)
5+
(import std.Exceptions :throw :return :try)
66

77
# the function which should do a "safe number inversion"
88
(let invert (fun (x) {

examples/fibo.ark

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/http.ark

Lines changed: 0 additions & 59 deletions
This file was deleted.

examples/quicksort.ark

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)