Skip to content

Read() checks if line length < 0 ? #9

@Dieterbe

Description

@Dieterbe

if (len(line) < 0) {

should probably check if len(line) == 0 ?

i've tried to fix it but unfortunately that breaks the tests.
haven't been able to figure out yet how the tests work, the test against the pretermined checksum is a bit strange.
i would suggest to use something like https://github.com/sergi/go-diff to show what's the diff between expected and resulting file

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