summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2021-04-24 17:04:23 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2021-04-24 17:04:23 +0300
commit9ff8b7069da390540168723ce110b92f6d17c6b0 (patch)
treed44422bbac41d23a0d9fd4609fd8d18400562824
parent52279cfc4fb3a1a8bc8e6cfb2ebd4f6660aad44f (diff)
fix: downgrade fennel to 0.8.1
-rw-r--r--.gitlab-ci.yml6
-rw-r--r--tests/core.fnl5
2 files changed, 7 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0978899..1b4ed46 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,8 +17,10 @@ variables:
cd .cache
[ -d fennel ] || git clone -q https://git.sr.ht/~technomancy/fennel
cd fennel || exit -1
- git pull
- git checkout 0.9.1
+ git checkout -q .
+ git checkout -q main
+ git pull -q --rebase
+ git checkout 0.8.1
make clean
make install
cd "$CI_PROJECT_DIR"
diff --git a/tests/core.fnl b/tests/core.fnl
index fb532d3..bac93dd 100644
--- a/tests/core.fnl
+++ b/tests/core.fnl
@@ -445,9 +445,10 @@
(assert-eq (keys {:a 1}) [:a])
(assert-eq (vals {:a 1}) [1])
(match (pcall #(assert-eq (keys {:a 1 :b 2 :c 3}) (hash-set :a :b :c)))
- (false msg) (io.stderr:write (.. "WARNING: " msg)))
+ (false msg) (io.stderr:write "WARNING: " msg))
+ (print "10")
(match (pcall #(assert-eq (vals {:a 1 :b 2 :c 3}) (hash-set 1 2 3)))
- (false msg) (io.stderr:write (.. "WARNING: " msg)))
+ (false msg) (io.stderr:write "WARNING: " msg))
(assert-eq (find {:a 1 :b 2 :c 3} :c) [:c 3])
(assert-eq (find {:a 1 :b 2 :c 3} :d) nil)))