test_encoder.py 196 Bytes
Newer Older
EXT tlavocat's avatar
EXT tlavocat committed
1
2
3
4
5
6
7
8
import pytest
from yggdrasil.erebor.encoder import MPIDecoder

def test_mpi_decoder():
    d = MPIDecoder()
    l = ["a", "b", "cd", "efghij", "a"]
    e = d.pack(*l)
    assert(d.unpack(e) == l)