| 78 | } |
| 79 | |
| 80 | void |
| 81 | testChunkHeader() |
| 82 | { |
| 83 | check<chunk_header>("10\r\n", 16u); |
| 84 | |
| 85 | check<chunk_header>("20;x\r\n", 32u, ";x"); |
| 86 | |
| 87 | chunk_extensions exts; |
| 88 | exts.insert("y"); |
| 89 | exts.insert("z"); |
| 90 | |
| 91 | check<chunk_header>("30;y;z\r\n", 48u, exts); |
| 92 | |
| 93 | { |
| 94 | auto exts2 = exts; |
| 95 | |
| 96 | check_fwd<chunk_header>( |
| 97 | "30;y;z\r\n", 48u, std::move(exts2)); |
| 98 | } |
| 99 | |
| 100 | check<chunk_header>("30;y;z\r\n", 48u, exts, |
| 101 | std::allocator<double>{}); |
| 102 | |
| 103 | { |
| 104 | auto exts2 = exts; |
| 105 | |
| 106 | check<chunk_header>( |
| 107 | "30;y;z\r\n", 48u, std::move(exts2), |
| 108 | std::allocator<double>{}); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | void |
| 113 | testChunkBody() |