| 52 | // issue #577 |
| 53 | |
| 54 | static void do_json_tok_bitcoin_amount(const char* val, uint64_t expected) |
| 55 | { |
| 56 | uint64_t amount; |
| 57 | jsmntok_t tok; |
| 58 | |
| 59 | tok.start = 0; |
| 60 | tok.end = strlen(val); |
| 61 | |
| 62 | fprintf(stderr, "do_json_tok_bitcoin_amount(\"%s\", %"PRIu64"): ", val, expected); |
| 63 | |
| 64 | assert(json_to_bitcoin_amount(val, &tok, &amount) == true); |
| 65 | assert(amount == expected); |
| 66 | |
| 67 | fprintf(stderr, "ok\n"); |
| 68 | } |
| 69 | |
| 70 | |
| 71 | static int test_json_tok_bitcoin_amount(void) |
no test coverage detected