diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2013-02-26 21:14:07 -0600 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2013-02-26 21:14:07 -0600 |
commit | 94aeed2ecd5b65e46434cde5ba5f5a17ffd5f4c1 (patch) | |
tree | d0c71a9ccfa8bea598db58baa251682a81892dad /tests | |
parent | 5b36a432c8b13f3534ade4c4b5ac721b6e35287a (diff) |
Include the test_locale test in the tests that run.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/test_locale.expected | 2 | ||||
-rwxr-xr-x | tests/test_locale.test | 12 |
3 files changed, 15 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 881c7e7..c6123ed 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -39,7 +39,7 @@ test_parse_LDADD = $(LIBJSON_LA) test_locale_LDADD = $(LIBJSON_LA) -TESTS = test1.test test2.test test4.test testReplaceExisting.test parse_int64.test test_null.test test_cast.test test_parse.test +TESTS = test1.test test2.test test4.test testReplaceExisting.test parse_int64.test test_null.test test_cast.test test_parse.test test_locale.test TESTS+= test_printbuf.test check_PROGRAMS+=test_printbuf diff --git a/tests/test_locale.expected b/tests/test_locale.expected new file mode 100644 index 0000000..8031785 --- /dev/null +++ b/tests/test_locale.expected @@ -0,0 +1,2 @@ +new_obj.to_string()=[ 1.200000, 3.400000, 123456.780000, 5.000000, 23000000000.000000 ] +new_obj.to_string()=[1.2,3.4,123456.78,5.0,23000000000.0] diff --git a/tests/test_locale.test b/tests/test_locale.test new file mode 100755 index 0000000..e4b6c6d --- /dev/null +++ b/tests/test_locale.test @@ -0,0 +1,12 @@ +#!/bin/sh + +# Common definitions +if test -z "$srcdir"; then + srcdir="${0%/*}" + test "$srcdir" = "$0" && srcdir=. + test -z "$srcdir" && srcdir=. +fi +. "$srcdir/test-defs.sh" + +run_output_test test_locale +exit $? |