Add a testcase that demonstrates limit on line-length
see issue https://github.com/liblouis/liblouis/issues/106
diff --git a/.gitignore b/.gitignore
index c4f769b..3f1d3cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -147,6 +147,7 @@
/tests/uplow_with_unicode
/tests/logging
/tests/findTable
+/tests/line_length_limit
# /tests/doctests/
/tests/doctests/Makefile
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4e46b03..8f220d7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -133,6 +133,9 @@
findTable_SOURCES = \
findTable.c
+line_length_limit_SOURCES = \
+ line_length_limit.c
+
# Note that this is not currently included in check_programs below
# otherwise make check would never complete.
infiniteTranslationLoop_SOURCES = \
@@ -168,7 +171,8 @@
hash_collision \
resolve_table \
logging \
- findTable
+ findTable \
+ line_length_limit
dist_check_SCRIPTS = \
diff --git a/tests/line_length_limit.c b/tests/line_length_limit.c
new file mode 100644
index 0000000..0a5c304
--- /dev/null
+++ b/tests/line_length_limit.c
@@ -0,0 +1,10 @@
+// see issue https://github.com/liblouis/liblouis/issues/106
+
+#include <stdlib.h>
+#include "liblouis.h"
+
+int
+main(int argc, char **argv)
+{
+ return (lou_getTable("tables/line_length_limit") == NULL);
+}
diff --git a/tests/tables/line_length_limit b/tests/tables/line_length_limit
new file mode 100644
index 0000000..1b9ffe9
--- /dev/null
+++ b/tests/tables/line_length_limit
@@ -0,0 +1,2 @@
+# class foooooooooooooooooooooooooooooo ÁáÉéÍíÓóÚúÝýĆćĹĺŃńŔŕŚśŹźǴǵǼǽḰḱḾḿṔṕẂẃṤṥȽƚꞒɬĂăĔĕĞğĬĭŎŏŬŭẮắẶặẰằẲẳẴẵḪḫČčĎďĚ켾ŇňŘřŠšŤťŽžǍǎǏǐǑǒǓǔǦǧǨǩǰȞȟṦṧÇçĢģĶķĻļŅņŖŗŞşŢţȨȩḐḑḨḩḈḉḜḝÂâÊêÎîÔôÛûĈĉĜĝĤĥĴĵŜŝŴŵŶŷẐẑẤấẾếỐốẬậỆệỘộẦầỀềỒồẨẩỂểỔổẪẫỄễỖỗḒḓḘḙḼḽṊṋṰṱṶṷȘșȚțʝ
+