| 28 | // issue #577 |
| 29 | |
| 30 | static void do_json_tok_bitcoin_amount(const char* val, uint64_t expected) |
| 31 | { |
| 32 | uint64_t amount; |
| 33 | jsmntok_t tok; |
| 34 | |
| 35 | tok.start = 0; |
| 36 | tok.end = strlen(val); |
| 37 | |
| 38 | fprintf(stderr, "do_json_tok_bitcoin_amount(\"%s\", %"PRIu64"): ", val, expected); |
| 39 | |
| 40 | assert(json_to_bitcoin_amount(val, &tok, &amount) == true); |
| 41 | assert(amount == expected); |
| 42 | |
| 43 | fprintf(stderr, "ok\n"); |
| 44 | } |
| 45 | |
| 46 | |
| 47 | static int test_json_tok_bitcoin_amount(void) |
no test coverage detected