Skip to content

Commit 64fda3f

Browse files
rzuckermactions-user
authored andcommitted
Add Picolisp Tests (#3091)
Add Picolisp Testing
1 parent 80168bb commit 64fda3f

File tree

4 files changed

+18
-19
lines changed

4 files changed

+18
-19
lines changed

archive/p/picolisp/README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,10 @@ The following list contains all of the approved programs that are not currently
5555

5656
## Testing
5757

58-
This language currently does not feature testing. If you'd like to help in the efforts to test all of the code in this repo, consider creating a testinfo.yml file with the following information:
58+
The following list shares details about what we're using to test all Sample Programs in Picolisp.
5959

60-
```yml
61-
folder:
62-
extension:
63-
naming:
64-
65-
container:
66-
image:
67-
tag:
68-
cmd:
69-
```
60+
- Docker Image: progit/pil-alpine-minimal
61+
- Docker Tag: latest
7062

7163
See the [Glotter2 project](https://github.com/rzuckerm/glotter2) for more information on how to create a testinfo file.
7264

archive/p/picolisp/hello-world.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
(prinl "Hello, World!")
2+
(bye)
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
(loop
2-
(prinl "Welcome to the string reverser. For reversing a sentence and not just a single word, quoting with \" is required.")
3-
(prinl "Enter a string: ")
4-
(let Str (read)
5-
(prinl
6-
(pack
7-
(reverse
8-
(chop D)))))
1+
(let Str (argv A)
2+
(prinl
3+
(pack
4+
(reverse
5+
(chop A)))))
6+
(bye)

archive/p/picolisp/testinfo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
folder:
2+
extension: ".l"
3+
naming: "hyphen"
4+
5+
container:
6+
image: "progit/pil-alpine-minimal"
7+
tag: "latest"
8+
cmd: "/picoLisp/pil {{ source.name }}{{ source.extension }}"

0 commit comments

Comments
 (0)