summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-09-04 00:27:38 -0700
committerOri Bernstein <ori@eigenstate.org>2016-09-04 00:27:38 -0700
commit4855e100dd14214ffe838fd836e4dcb726dea1d2 (patch)
tree0e44b8c8a2ecdbd304a085a663886532a7f3892c
parent5b8d17c48f84ac4dd5e68a18b7f9ea119ea8745e (diff)
downloadmc-4855e100dd14214ffe838fd836e4dcb726dea1d2.tar.gz
Fix the tests.
Helps if the tests are correct.
-rw-r--r--lib/inifile/test/inifile.myr4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/inifile/test/inifile.myr b/lib/inifile/test/inifile.myr
index 5c8c679..36a2df6 100644
--- a/lib/inifile/test/inifile.myr
+++ b/lib/inifile/test/inifile.myr
@@ -38,20 +38,18 @@ const getkeys = {
const itersects = {
var ini
- var somesect, anothersection, newsect
+ var somesect, anothersection
ini = std.try(inifile.load("test/test.ini"))
for k in inifile.bysection(ini)
match k
| "somesect": somesect++
| "another section": anothersection++
- | "new sect": newsect++
| bad: std.fatal("invalid section {}\n", bad)
;;
;;
std.assert(somesect==1, "wrong section count for 'somesect'\n")
std.assert(anothersection==1, "wrong section count for 'another section'\n")
- std.assert(newsect==1, "wrong section count for 'new sect'\n")
}
const checkval = {ini, sect, key, expected