From 3078928d450d8d07de677791990568d6945351b8 Mon Sep 17 00:00:00 2001 From: Raphael DALMON Date: Mon, 13 Oct 2025 10:15:38 +0200 Subject: [PATCH 1/2] feat: test decimal --- ilp-client-interop-test.json | 58 +++++++++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/ilp-client-interop-test.json b/ilp-client-interop-test.json index 2582de2..123ed6e 100644 --- a/ilp-client-interop-test.json +++ b/ilp-client-interop-test.json @@ -32,6 +32,7 @@ ], "result": { "status": "SUCCESS", + "binaryBase64": "dGVzdF90YWJsZSxzeW1fY29sPXN5bV92YWwgc3RyX2NvbD0iZm9vIGJhciBiYXoiLGxvbmdfY29sPTQyaSxkb3VibGVfY29sPT0QAAAAAABARUAsYm9vbF9jb2w9dAo=", "line": "test_table,sym_col=sym_val str_col=\"foo bar baz\",long_col=42i,double_col=42.5,bool_col=t" } }, @@ -73,6 +74,7 @@ ], "result": { "status": "SUCCESS", + "binaryBase64": "ZG91YmxlcyBkMD09EAAAAAAAAAAALGRtMD09EAAAAAAAAACALGQxPT0QAAAAAAAA8D8sZEUxMDA9PRB9w5QlrUmyVCxkMDAwMDAwMT09EI3ttaD3xrA+LGROMDAwMDAwMT09EI3ttaD3xrC+Cg==", "anyLines": [ "doubles d0=0,dm0=-0,d1=1,dE100=1E+100,d0000001=1E-06,dN0000001=-1E-06", "doubles d0=0.0,dm0=-0.0,d1=1.0,dE100=1e100,d0000001=1e-6,dN0000001=-1e-6", @@ -1639,15 +1641,57 @@ "testName": "quote in symbol value", "table": "quote", "symbols": [ - { - "name": "sym", - "value": "\"val\"" - } + { + "name": "sym", + "value": "\"val\"" + } ], "columns": [], "result": { - "status": "SUCCESS", - "line": "quote,sym=\"val\"" + "status": "SUCCESS", + "line": "quote,sym=\"val\"" + } + }, + { + "testName": "decimal", + "table": "decimals", + "symbols": [], + "columns": [ + { + "type": "DECIMAL", + "name": "zero", + "value": "0.0" + }, + { + "type": "DECIMAL", + "name": "neg_zero", + "value": "-0.0" + }, + { + "type": "DECIMAL", + "name": "one", + "value": "1.0" + }, + { + "type": "DECIMAL", + "name": "large", + "value": "99999999999999.999" + }, + { + "type": "DECIMAL", + "name": "small", + "value": "0.001" + }, + { + "type": "DECIMAL", + "name": "neg_small", + "value": "-0.001" + } + ], + "result": { + "status": "SUCCESS", + "line": "decimals zero=0d,neg_zero=0d,one=1.0d,large=99999999999999.999d,small=0.001d,neg_small=-0.001d", + "binaryBase64": "ZGVjaW1hbHMgemVybz09FwEBACxuZWdfemVybz09FwEBACxvbmU9PRcBAQosbGFyZ2U9PRcDCAFjRXhdif//LHNtYWxsPT0XAwEBLG5lZ19zbWFsbD09FwMB/wo=" } } -] +] \ No newline at end of file From 1aaa3f96ab06c6bef7d1b08400c418ef87562e56 Mon Sep 17 00:00:00 2001 From: Raphael DALMON Date: Thu, 16 Oct 2025 09:40:26 +0200 Subject: [PATCH 2/2] tests: add minimum protocol version to decimal test --- ilp-client-interop-test.json | 1 + 1 file changed, 1 insertion(+) diff --git a/ilp-client-interop-test.json b/ilp-client-interop-test.json index 123ed6e..4c8f5fa 100644 --- a/ilp-client-interop-test.json +++ b/ilp-client-interop-test.json @@ -1654,6 +1654,7 @@ }, { "testName": "decimal", + "minimumProtocolVersion": 3, "table": "decimals", "symbols": [], "columns": [