2022-11-01 21:01:49 +03:00
|
|
|
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"></span><span class="comment"># Testing trailing whitespace</span>
|
|
|
|
<span class="line"></span><span class="comment"># Response '<p>Hello</p>\n\n'</span>
|
|
|
|
<span class="line"></span>
|
2022-11-18 16:26:00 +03:00
|
|
|
<span class="line"></span><span class="comment"># Testing with a multiline string</span>
|
2022-11-01 21:01:49 +03:00
|
|
|
<span class="line"></span><span class="comment"># check exactly the whitespace</span>
|
|
|
|
<span class="line"></span><span class="comment"># It should produce an assert error</span>
|
|
|
|
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/error-assert-newline</span></span>
|
2022-11-11 16:25:00 +03:00
|
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
2022-11-18 16:26:00 +03:00
|
|
|
<span class="multiline"><span class="line">```</span>
|
2022-11-15 14:00:29 +03:00
|
|
|
<span class="line"><p>Hello</p></span>
|
2022-11-01 21:01:49 +03:00
|
|
|
<span class="line">```</span></span>
|
|
|
|
</span></span><span class="line"></span>
|
|
|
|
<span class="line"></span><span class="comment"># TODO</span>
|
|
|
|
<span class="line"></span><span class="comment"># Testing with XML</span>
|
|
|
|
<span class="line"></span><span class="comment"># Ignore trailing whitespace (semantic comparison)</span>
|
|
|
|
<span class="line"></span><span class="comment"># It should not produce an error</span>
|
|
|
|
<span class="line"></span><span class="comment"># GET http://localhost:8000/error-assert-newline</span>
|
2022-11-11 16:25:00 +03:00
|
|
|
<span class="line"></span><span class="comment"># HTTP 200</span>
|
2022-11-01 21:01:49 +03:00
|
|
|
<span class="line"></span><span class="comment"># <p>Hello</p></span>
|
|
|
|
</code></pre>
|