Browse Source

Include the test_locale test in the tests that run.

tags/json-c-0.11-20130402
Eric Haszlakiewicz 12 years ago
parent
commit
94aeed2ecd
3 changed files with 15 additions and 1 deletions
  1. +1
    -1
      tests/Makefile.am
  2. +2
    -0
      tests/test_locale.expected
  3. +12
    -0
      tests/test_locale.test

+ 1
- 1
tests/Makefile.am View File

@@ -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


+ 2
- 0
tests/test_locale.expected View File

@@ -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]

+ 12
- 0
tests/test_locale.test View File

@@ -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 $?

Loading…
Cancel
Save