aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serd_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-28 07:45:50 +0000
committerDavid Robillard <d@drobilla.net>2012-02-28 07:45:50 +0000
commit11a87df2845c4cd577786d2b4df83ab44421f546 (patch)
tree24af8188e1fccf262c876277d4c8edbee4e9f84f /tests/serd_test.c
parent1663e3e9940db8be898a1e00e5b6833cd8a22c3f (diff)
downloadserd-11a87df2845c4cd577786d2b4df83ab44421f546.tar.gz
serd-11a87df2845c4cd577786d2b4df83ab44421f546.tar.bz2
serd-11a87df2845c4cd577786d2b4df83ab44421f546.zip
Fix serialisation of decimals like 10.0, 20.0, etc.
git-svn-id: http://svn.drobilla.net/serd/trunk@325 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r--tests/serd_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index aa47ade4..12129280 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -108,11 +108,11 @@ main()
// Test serd_node_new_decimal
const double dbl_test_nums[] = {
- 0.0, 42.0, .01, 2.05, -16.00001, 5.000000005, 0.0000000001
+ 0.0, 9.0, 10.0, .01, 2.05, -16.00001, 5.000000005, 0.0000000001
};
const char* dbl_test_strs[] = {
- "0.0", "42.0", "0.01", "2.05", "-16.00001", "5.00000001", "0.0"
+ "0.0", "9.0", "10.0", "0.01", "2.05", "-16.00001", "5.00000001", "0.0"
};
for (unsigned i = 0; i < sizeof(dbl_test_nums) / sizeof(double); ++i) {