ref: 4855e100dd14214ffe838fd836e4dcb726dea1d2
parent: 5b8d17c48f84ac4dd5e68a18b7f9ea119ea8745e
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Sep 3 20:27:38 EDT 2016
Fix the tests. Helps if the tests are correct.
--- a/lib/inifile/test/inifile.myr
+++ b/lib/inifile/test/inifile.myr
@@ -38,7 +38,7 @@
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)
@@ -45,13 +45,11 @@
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