Skip to content

Test suite failing #53

Description

@Millak

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions