html2text icon indicating copy to clipboard operation
html2text copied to clipboard

Test suite failing

Open Millak opened this issue 2 years ago • 1 comments

After the merge of #49 I found the test suite is failing. Going back to the previous commit makes it pass again.

starting phase `check' --- FAIL: TestLinks (0.00s) html2text_test.go:469: error: input did not match specified expression Input: >>>> http://www.google.com <<<<

    Output:
    >>>>
    http://www.google.com ( http://www.google.com )
    <<<<

    Expected:
    >>>>
    http://www.google.com
    <<<<

--- FAIL: TestOmitLinks (0.00s) html2text_test.go:517: error: input did not match specified expression Input: >>>> <<<<

    Output:
    >>>>
    ( http://example.com/ )
    <<<<

    Expected:
    >>>>

    <<<<
html2text_test.go:517: error: input did not match specified expression
    Input:
    >>>>
    <a href="http://example.com/">Link</a>
    <<<<

    Output:
    >>>>
    Link ( http://example.com/ )
    <<<<

    Expected:
    >>>>
    Link
    <<<<
html2text_test.go:517: error: input did not match specified expression
    Input:
    >>>>
    <a href="http://example.com/"><span class="a">Link</span></a>
    <<<<

    Output:
    >>>>
    Link ( http://example.com/ )
    <<<<

    Expected:
    >>>>
    Link
    <<<<
html2text_test.go:517: error: input did not match specified expression
    Input:
    >>>>
    <a href='http://example.com/'>
            <span class='a'>Link</span>
            </a>
    <<<<

    Output:
    >>>>
    Link ( http://example.com/ )
    <<<<

    Expected:
    >>>>
    Link
    <<<<
html2text_test.go:517: error: input did not match specified expression
    Input:
    >>>>
    <a href="http://example.com/"><img src="http://example.ru/hello.jpg" alt="Example"></a>
    <<<<

    Output:
    >>>>
    Example ( http://example.com/ )
    <<<<

    Expected:
    >>>>
    Example
    <<<<

FAIL FAIL github.com/jaytaylor/html2text 0.003s FAIL error: in phase 'check': uncaught exception: %exception #<&invoke-error program: "go" arguments: ("test" "github.com/jaytaylor/html2text") exit-status: 1 term-signal: #f stop-signal: #f> phase `check' failed after 1.0 seconds command "go" "test" "github.com/jaytaylor/html2text" failed with status 1

Millak avatar Jan 02 '22 09:01 Millak

should be fixed by #59

flimzy avatar Nov 15 '22 15:11 flimzy