(major, minor, data)
| 155 | return encoded |
| 156 | |
| 157 | def test_decode(major, minor, data): |
| 158 | hma = bin2hex(major) |
| 159 | hmi = bin2hex(minor) |
| 160 | hda = bin2hex(data) |
| 161 | decoded = test_latest('SPICE_Text', ACTION='Decode Input', |
| 162 | MAJOR_KEY=hma, MINOR_KEY=hmi, INPUT=hda) |
| 163 | return decoded |
| 164 | |
| 165 | def bin2hex(x): |
| 166 | return ''.join('%02X' % ord(y) for y in x) |
no test coverage detected