Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite failing #53

Open
Millak opened this issue Jan 2, 2022 · 2 comments
Open

Test suite failing #53

Millak opened this issue Jan 2, 2022 · 2 comments

Comments

@Millak
Copy link

Millak commented Jan 2, 2022

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

@flimzy
Copy link
Contributor

flimzy commented Nov 15, 2022

should be fixed by #59

@Hellseher
Copy link

All tests are passing with version 0.0.0-20230321000545-74c2419ad056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants