diff options
author | David Robillard <d@drobilla.net> | 2019-10-06 20:40:56 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:59 +0100 |
commit | 9e59a63d9b5897d9ff6d0d9936a57c3167ea9a34 (patch) | |
tree | f54ecb581bef3e8476725e989b36e14ac556e0a2 /tests/serd_test.c | |
parent | 5a0d9e5a66e0ad0b85db3740b479301128637ad5 (diff) | |
download | serd-9e59a63d9b5897d9ff6d0d9936a57c3167ea9a34.tar.gz serd-9e59a63d9b5897d9ff6d0d9936a57c3167ea9a34.tar.bz2 serd-9e59a63d9b5897d9ff6d0d9936a57c3167ea9a34.zip |
Add precise decimal digit generation
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r-- | tests/serd_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index 599e948a..81fb0322 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -310,13 +310,13 @@ test_double_to_node(void) "0.01", "2.05", "-16.00001", - "5.00000001", + "5.0", "0.0", NULL, NULL }; for (size_t i = 0; i < sizeof(dbl_test_nums) / sizeof(double); ++i) { - SerdNode* node = serd_new_decimal(dbl_test_nums[i], 8, NULL); + SerdNode* node = serd_new_decimal(dbl_test_nums[i], 17, 8, NULL); const char* node_str = serd_node_string(node); const bool pass = (node_str && dbl_test_strs[i]) ? !strcmp(node_str, dbl_test_strs[i]) |