Skip to content

Commit

Permalink
Re-add tests for Never, Pony, Ring, and Spry
Browse files Browse the repository at this point in the history
  • Loading branch information
rzuckerm authored and actions-user committed Aug 23, 2023
1 parent 09bd453 commit 854fc4d
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 85 deletions.
14 changes: 3 additions & 11 deletions archive/n/never/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,10 @@ The following list contains all of the approved programs that are not currently

## Testing

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:
The following list shares details about what we're using to test all Sample Programs in Never.

```yml
folder:
extension:
naming:

container:
image:
tag:
cmd:
```
- Docker Image: rzuckerm/never
- Docker Tag: 2.1.8a1-2

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

Expand Down
19 changes: 3 additions & 16 deletions archive/n/never/hello-world.nev
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@

func print_str(hw[L] -> int) -> int
{
func __print(hw[L] -> int, i -> int) -> int
{
i < L ? { print(hw[i]); __print(hw, i + 1) } : 0
}
__print(hw, 0)
func main() -> int {
prints("Hello, World!\n");
0
}

func main() -> int
{
let hw = [ 72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33 ] -> int;

print_str(hw)
}

32 changes: 7 additions & 25 deletions archive/n/never/reverse-string.nev
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@

func print_str(hw[L] -> int) -> int
{
func __print(hw[L] -> int, i -> int) -> int
{
i < L ? { print(hw[i]); __print(hw, i + 1) } : 0
}
__print(hw, 0)
}

func reverse(hw[L] -> int) -> [_] -> int
func reverse(s: string) -> string
{
let rev = {[ L ]} -> int;

func __reverse(hw[L1] -> int, rev[L2] -> int, i -> int) -> int
{
i < L1 ? { rev[L2 - i - 1] = hw[i]; __reverse(hw, rev, i + 1) } : 0
}
__reverse(hw, rev, 0);

rev
let n = length(s);
(n > 0) ? s[n - 1 .. 0] : ""
}

func main() -> int
func main(argv[argc]: string) -> int
{
let hw = [ 72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33 ] -> int;

print_str(reverse(hw))
let s = (argc > 1) ? argv[1] : "";
prints(reverse(s) + "\n");
0
}

8 changes: 8 additions & 0 deletions archive/n/never/testinfo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
folder:
extension: ".nev"
naming: "hyphen"

container:
image: "rzuckerm/never"
tag: "2.1.8a1-2"
cmd: "never -f {{ source.name }}{{ source.extension }} -- --args"
14 changes: 3 additions & 11 deletions archive/p/pony/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,10 @@ The following list contains all of the approved programs that are not currently

## Testing

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:
The following list shares details about what we're using to test all Sample Programs in Pony.

```yml
folder:
extension:
naming:

container:
image:
tag:
cmd:
```
- Docker Image: ponylang/ponyc
- Docker Tag: 0.55.1-alpine

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

Expand Down
9 changes: 9 additions & 0 deletions archive/p/pony/testinfo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
folder:
extension: ".pony"
naming: "hyphen"

container:
image: "ponylang/ponyc"
tag: "0.55.1-alpine"
build: "ponyc . --bin-name {{ source.name }}"
cmd: "./{{ source.name }}"
14 changes: 3 additions & 11 deletions archive/r/ring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,10 @@ The following list contains all of the approved programs that are not currently

## Testing

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:
The following list shares details about what we're using to test all Sample Programs in Ring.

```yml
folder:
extension:
naming:

container:
image:
tag:
cmd:
```
- Docker Image: esolang/ring
- Docker Tag: latest

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

Expand Down
8 changes: 8 additions & 0 deletions archive/r/ring/testinfo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
folder:
extension: ".ring"
naming: "pascal"

container:
image: "esolang/ring"
tag: "latest"
cmd: "ring {{ source.name }}{{ source.extension }}"
14 changes: 3 additions & 11 deletions archive/s/spry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,10 @@ The following list contains all of the approved programs that are not currently

## Testing

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:
The following list shares details about what we're using to test all Sample Programs in Spry.

```yml
folder:
extension:
naming:

container:
image:
tag:
cmd:
```
- Docker Image: thalesmg/spry
- Docker Tag: 20180326

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

Expand Down
8 changes: 8 additions & 0 deletions archive/s/spry/testinfo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
folder:
extension: ".sy"
naming: "hyphen"

container:
image: "thalesmg/spry"
tag: "20180326"
cmd: "spry {{ source.name }}{{ source.extension }}"

0 comments on commit 854fc4d

Please sign in to comment.