mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
common/test/run-param: fix parsing test.
Wasn't using valid JSON, but worked anyway. This is actually OK because we don't rely on tok->size, but we want to, so another fix coming. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
774973263c
commit
be8006a4fc
@@ -183,7 +183,7 @@ static void tok_tok(void)
|
|||||||
{
|
{
|
||||||
unsigned int n;
|
unsigned int n;
|
||||||
const jsmntok_t *tok = NULL;
|
const jsmntok_t *tok = NULL;
|
||||||
struct json *j = json_parse(cmd, "{ 'satoshi', '546' }");
|
struct json *j = json_parse(cmd, "{ 'satoshi': '546' }");
|
||||||
|
|
||||||
assert(param(cmd, j->buffer, j->toks,
|
assert(param(cmd, j->buffer, j->toks,
|
||||||
p_req("satoshi", param_tok, &tok), NULL));
|
p_req("satoshi", param_tok, &tok), NULL));
|
||||||
|
|||||||
Reference in New Issue
Block a user