| 75 | } |
| 76 | |
| 77 | bool static TestParse(string src, string canon) |
| 78 | { |
| 79 | CService addr; |
| 80 | if (!LookupNumeric(src.c_str(), addr, 65535)) |
| 81 | return canon == ""; |
| 82 | return canon == addr.ToString(); |
| 83 | } |
| 84 | |
| 85 | BOOST_AUTO_TEST_CASE(netbase_lookupnumeric) |
| 86 | { |
no test coverage detected