summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.luacov9
-rw-r--r--Makefile5
-rw-r--r--test/core.fnl2
3 files changed, 10 insertions, 6 deletions
diff --git a/.luacov b/.luacov
index 8759d73..1e6023e 100644
--- a/.luacov
+++ b/.luacov
@@ -3,7 +3,10 @@
-- see https://keplerproject.github.io/luacov/doc/modules/luacov.defaults.html
return {
- runreport = true,
- statsfile = "luacov.stats.out";
- reportfile = "luacov.report.out";
+ ["exclude"] = {
+ "src/fennel/macros.fnl"
+ },
+ runreport = true,
+ statsfile = "luacov.stats.out";
+ reportfile = "luacov.report.out";
}
diff --git a/Makefile b/Makefile
index 4f6d1c5..5188226 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
LUA ?= lua
-FNLSOURCES = core.fnl test/core.fnl test/macros.fnl
+FNLSOURCES = core.fnl test/core.fnl test/macros.fnl test/fn.fnl
LUASOURCES = $(FNLSOURCES:.fnl=.lua)
all: $(LUASOURCES)
@@ -37,7 +37,8 @@ luacov-console: | luacov
@mv test/fn.lua.tmp test/fn.lua
luacov-stats: test/core.lua test/macros.lua test/fn.lua
- @$(LUA) -lluarocks.loader -lluacov $<
+ @$(foreach test, $?, $(LUA) -lluarocks.loader -lluacov $(test);)
+
help:
@echo "make -- run tests and create lua library" >&2
diff --git a/test/core.fnl b/test/core.fnl
index ed34e02..c05f2ec 100644
--- a/test/core.fnl
+++ b/test/core.fnl
@@ -579,7 +579,7 @@
(assert* (not (ge 1 2 4 4))))
(testing gt
- (assert* (not (pcall ge)))
+ (assert* (not (pcall gt)))
(assert* (gt 2))
(assert* (gt 2 1))
(assert* (gt 3 2 1))