commit ab3ecd0a1a5bfd0e0358537c0fbbde0912f4fd1a Author: Daniel Swanson Date: Wed Jun 2 14:34:28 2021 -0500 add a non-BMP test diff --git a/configure.ac b/configure.ac index 64d84e9..ab37b3d 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,7 @@ AC_TYPE_SIZE_T AC_FUNC_ERROR_AT_LINE AC_CHECK_DECLS([fread_unlocked, fwrite_unlocked, fgetc_unlocked, \ -fputc_unlocked, fputs_unlocked, fgetwc_unlocked, fputwc_unlocked, fputws_unlocked, ungetwc_unlocked]) +fputc_unlocked, fputs_unlocked]) AC_CHECK_FUNCS([setlocale strdup getopt_long]) diff --git a/tests/lt_proc/__init__.py b/tests/lt_proc/__init__.py index ffc9236..cfbda32 100644 --- a/tests/lt_proc/__init__.py +++ b/tests/lt_proc/__init__.py @@ -148,8 +148,8 @@ class PostgenerationBasicTest(ProcTest): "El perro ~de el amigo.", "abc ~les testword"] expectedOutputs = [ "xyz ejemplo u ho nombre.", - "xyz se la pelota.", - "El perro del amigo.", + "xyz se la pelota.", + "El perro del amigo.", "abc le pe test testword"] class PostgenerationWordboundBlankTest(ProcTest): @@ -220,5 +220,11 @@ class SpaceAtEOF(ProcTest): flushing = False +class NonBMPTest(ProcTest): + procdix = "data/non-bmp.dix" + inputs = ['𐅁𐅃𐅅', '𐅂𐅄𐅆'] + expectedOutputs = ['^𐅁𐅃𐅅/𐅁𐅃𐅅$', '^𐅂𐅄𐅆/𐅂𐅄𐅆$'] + + # These fail on some systems: #from null_flush_invalid_stream_format import *