summary refs log tree commit diff
path: root/bin/edi/iter.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-22 16:05:51 -0500
committerJune McEnroe <june@causal.agency>2018-11-22 16:05:51 -0500
commit8ee3459cdb3152b9ef551c97041c725ae816977d (patch)
treeedbbc08d01bed996de6b860cbab2523a3787e795 /bin/edi/iter.c
parentReorganize ignored directories (diff)
downloadsrc-8ee3459cdb3152b9ef551c97041c725ae816977d.tar.gz
src-8ee3459cdb3152b9ef551c97041c725ae816977d.zip
Simplify edi file reading
Diffstat (limited to 'bin/edi/iter.c')
-rw-r--r--bin/edi/iter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/edi/iter.c b/bin/edi/iter.c
index a4c97b71..cb34fc2d 100644
--- a/bin/edi/iter.c
+++ b/bin/edi/iter.c
@@ -79,6 +79,7 @@ int main() {
 	assert(L'B' == iter(&table, 1).ch);
 	assert(L'C' == iter(&table, 2).ch);
 	assert(L'D' == iter(&table, 3).ch);
+	assert(WEOF == iter(&table, 4).ch);
 
 	assert(L'B' == iterNext(iter(&table, 0)).ch);
 	assert(L'C' == iterNext(iter(&table, 1)).ch);