Skip to content

Commit 854fc4d

Browse files
Ron Zuckermanactions-user
authored andcommitted
Re-add tests for Never, Pony, Ring, and Spry
1 parent 09bd453 commit 854fc4d

File tree

10 files changed

+55
-85
lines changed

10 files changed

+55
-85
lines changed

archive/n/never/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 Never.
5959

60-
```yml
61-
folder:
62-
extension:
63-
naming:
64-
65-
container:
66-
image:
67-
tag:
68-
cmd:
69-
```
60+
- Docker Image: rzuckerm/never
61+
- Docker Tag: 2.1.8a1-2
7062

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

archive/n/never/hello-world.nev

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
1-
2-
func print_str(hw[L] -> int) -> int
3-
{
4-
func __print(hw[L] -> int, i -> int) -> int
5-
{
6-
i < L ? { print(hw[i]); __print(hw, i + 1) } : 0
7-
}
8-
__print(hw, 0)
1+
func main() -> int {
2+
prints("Hello, World!\n");
3+
0
94
}
10-
11-
func main() -> int
12-
{
13-
let hw = [ 72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33 ] -> int;
14-
15-
print_str(hw)
16-
}
17-

archive/n/never/reverse-string.nev

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,12 @@
1-
2-
func print_str(hw[L] -> int) -> int
3-
{
4-
func __print(hw[L] -> int, i -> int) -> int
5-
{
6-
i < L ? { print(hw[i]); __print(hw, i + 1) } : 0
7-
}
8-
__print(hw, 0)
9-
}
10-
11-
func reverse(hw[L] -> int) -> [_] -> int
1+
func reverse(s: string) -> string
122
{
13-
let rev = {[ L ]} -> int;
14-
15-
func __reverse(hw[L1] -> int, rev[L2] -> int, i -> int) -> int
16-
{
17-
i < L1 ? { rev[L2 - i - 1] = hw[i]; __reverse(hw, rev, i + 1) } : 0
18-
}
19-
__reverse(hw, rev, 0);
20-
21-
rev
3+
let n = length(s);
4+
(n > 0) ? s[n - 1 .. 0] : ""
225
}
236

24-
func main() -> int
7+
func main(argv[argc]: string) -> int
258
{
26-
let hw = [ 72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33 ] -> int;
27-
28-
print_str(reverse(hw))
9+
let s = (argc > 1) ? argv[1] : "";
10+
prints(reverse(s) + "\n");
11+
0
2912
}
30-

archive/n/never/testinfo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
folder:
2+
extension: ".nev"
3+
naming: "hyphen"
4+
5+
container:
6+
image: "rzuckerm/never"
7+
tag: "2.1.8a1-2"
8+
cmd: "never -f {{ source.name }}{{ source.extension }} -- --args"

archive/p/pony/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 Pony.
5959

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

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

archive/p/pony/testinfo.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
folder:
2+
extension: ".pony"
3+
naming: "hyphen"
4+
5+
container:
6+
image: "ponylang/ponyc"
7+
tag: "0.55.1-alpine"
8+
build: "ponyc . --bin-name {{ source.name }}"
9+
cmd: "./{{ source.name }}"

archive/r/ring/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 Ring.
5959

60-
```yml
61-
folder:
62-
extension:
63-
naming:
64-
65-
container:
66-
image:
67-
tag:
68-
cmd:
69-
```
60+
- Docker Image: esolang/ring
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/r/ring/testinfo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
folder:
2+
extension: ".ring"
3+
naming: "pascal"
4+
5+
container:
6+
image: "esolang/ring"
7+
tag: "latest"
8+
cmd: "ring {{ source.name }}{{ source.extension }}"

archive/s/spry/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 Spry.
5959

60-
```yml
61-
folder:
62-
extension:
63-
naming:
64-
65-
container:
66-
image:
67-
tag:
68-
cmd:
69-
```
60+
- Docker Image: thalesmg/spry
61+
- Docker Tag: 20180326
7062

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

archive/s/spry/testinfo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
folder:
2+
extension: ".sy"
3+
naming: "hyphen"
4+
5+
container:
6+
image: "thalesmg/spry"
7+
tag: "20180326"
8+
cmd: "spry {{ source.name }}{{ source.extension }}"

0 commit comments

Comments
 (0)