Now consuming mmm for tests and site.
h3rald h3rald@h3rald.com
Thu, 30 Nov 2023 15:10:30 +0100
20 files changed,
60 insertions(+),
37 deletions(-)
jump to
M
.github/workflows/test.yml
→
.github/workflows/test.yml
@@ -84,6 +84,10 @@ min.exe
args: --best --force if: matrix.os == 'windows-latest' + # Install tests deps + - name: Install tests deps + run: cd ./tests && ../min install + # Test (*nix) - name: Test run: ./min tests/all.min
M
site/assets/mmm.json
→
site/assets/mmm.json
@@ -1,14 +1,23 @@
{ - "updated": null, - "modules": [ - { - "name": "min-highlight", - "method": "git", - "url": "https://git.sr.ht/~h3rald/min-highlight", - "author": "Fabio Cevasco", - "description": "HTML syntax highlighter for min code", - "license": "MIT", - "deps": {} - } - ] + "modules": [ + { + "author": "Fabio Cevasco", + "deps": {}, + "description": "HTML syntax highlighter for min code", + "license": "MIT", + "method": "git", + "name": "min-highlight", + "url": "https://git.sr.ht/~h3rald/min-highlight" + }, + { + "name": "min-test", + "method": "git", + "url": "https://git.sr.ht/~h3rald/min-test", + "author": "Fabio Cevasco", + "description": "A minimal testing library for the min programming language.", + "license": "MIT", + "deps": {} + } + ], + "updated": null }
M
tests/crypto.min
→
tests/crypto.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "crypto" *test/describe@@ -22,4 +22,4 @@
("test" "test" aes "test" aes strip "test" ==) *test/assert *test/report - clear-stack+ clear-stack
M
tests/dict.min
→
tests/dict.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "dict" *test/describe
M
tests/dstore.min
→
tests/dstore.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "dstore" *test/describe@@ -34,4 +34,4 @@
"dstore.json" rm *test/report - clear-stack+ clear-stack
M
tests/fs.min
→
tests/fs.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "fs" *test/describe
M
tests/http.min
→
tests/http.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "http" *test/describe@@ -56,4 +56,4 @@ ) tap /body from-json /url "https://$1/delete" (host) => % ==
) *test/assert *test/report - clear-stack+ clear-stack
M
tests/io.min
→
tests/io.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "io" *test/describe@@ -11,4 +11,4 @@ "test.txt" fread "TEST - TEST" ==) *test/assert
"test.txt" rm *test/report - clear-stack+ clear-stack
M
tests/lang.min
→
tests/lang.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "lang" *test/describe
M
tests/logic.min
→
tests/logic.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "logic" *test/describe
M
tests/math.min
→
tests/math.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "math" *test/describe@@ -32,4 +32,4 @@
(-2.87 abs 2.87 ==) *test/assert *test/report - clear-stack+ clear-stack
A
tests/mmm.json
@@ -0,0 +1,10 @@
+{ + "name": "tests", + "author": "Fabio Cevasco", + "description": "Unit tests for the min programming language.", + "license": "MIT", + "private": true, + "deps": { + "min-test": "master" + } +}
M
tests/net.min
→
tests/net.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "net" *test/describe@@ -35,4 +35,4 @@ clear-stack
srv1 close srv2 close cli1 close - cli2 close+ cli2 close
M
tests/num.min
→
tests/num.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "num" *test/describe
M
tests/seq.min
→
tests/seq.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "seq" *test/describe
M
tests/stack.min
→
tests/stack.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "stack" *test/describe@@ -34,4 +34,4 @@
((1 2) (3 4) ((0 get) (1 get)) spread get-stack (1 4) ==) *test/assert *test/report - clear-stack+ clear-stack
M
tests/str.min
→
tests/str.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "str" *test/describe
M
tests/sys.min
→
tests/sys.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "sys" *test/describe
M
tests/time.min
→
tests/time.min
@@ -1,4 +1,4 @@
-'test require :test +'min-test require :test ;;; "time" *test/describe@@ -18,4 +18,4 @@
(1464951736 timeinfo 'timezone dget integer?) *test/assert *test/report - clear-stack+ clear-stack