Report for lv.id.jc.correcter.coder.HammingEncoderSpec


Summary:

Created on Thu Jan 20 19:43:22 EET 2022 by jegors
Executed features Passed Failures Errors Skipped Success rate Time
1 1 0 0 0 100.0% 0.012 seconds
Hamming error-correction encoder

Features:

should encode data by Hamming algorithm Return
Given:
def data = text.bytes
Expect:
coder.apply(data) == expected
And:
expected = output as byte[]
Examples:
text output expected
T [74, 152] [74, -104] OK
Test [74, 152, 204, 74, 30, 134, 30, 152] [74, -104, -52, 74, 30, -122, 30, -104] OK
2/2 passed