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


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.089 seconds
Bit-level error emulator
Simulate the sending through a poor internet connection 
making one-bit errors in every byte of the text
Issues:
See:

Features:

should make an error in one bit per byte Return
Given:
text as byte array
def data = text.bytes
When:
we use error emulator coder
def out = coder.apply(data)
Then:
we have one-bit errors in every byte of the data
(0..<data.length).every { (out[it] ^ data[it]) in ONE_BIT_ERRORS }
Examples:
text
Test OK
Hello OK
World! OK
OK
OK
5/5 passed