• Joe Tsai's avatar
    compress/bzip2: refactor unit tests · 8a83d36b
    Joe Tsai authored
    Over the years as more bugs were discovered with the bzip2 library,
    new Tests were appended the unit tests and the tests became gnarly.
    
    Clean up the tests to be more consistent with modern Go style in
    addition to coalescing common tests into a general version that
    iterates over a list of input/output pairs. This has the advantage that
    the input, output, and test code are all in the same area, rather than
    being sprawled around the test file.
    
    There is no loss of test coverage.
    
    Change-Id: I377ed89378f0b89763d4a56ffc37b22d9c2a369e
    Reviewed-on: https://go-review.googlesource.com/20133
    Run-TryBot: Joe Tsai <joetsai@digital-static.net>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    8a83d36b
Name
Last commit
Last update
..
Mark.Twain-Tom.Sawyer.txt.bz2 Loading commit data...
e.txt.bz2 Loading commit data...
fail-issue5747.bz2 Loading commit data...
pass-random1.bin Loading commit data...
pass-random1.bz2 Loading commit data...
pass-random2.bin Loading commit data...
pass-random2.bz2 Loading commit data...
pass-sawtooth.bz2 Loading commit data...
random.data.bz2 Loading commit data...