mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-18 05:52:42 +03:00
21 lines
1.5 KiB
HTML
21 lines
1.5 KiB
HTML
<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>
|
|
<span class="line"></span><span class="comment"># Testing with a multiline string</span>
|
|
<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>
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
|
<span class="multiline"><span class="line">```</span>
|
|
<span class="line"><p>Hello</p></span>
|
|
<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>
|
|
<span class="line"></span><span class="comment"># HTTP 200</span>
|
|
<span class="line"></span><span class="comment"># <p>Hello</p></span>
|
|
</code></pre>
|