def test_demodulate():
    data_carriers = test_data['ip_data_carriers']
    exp_demodulated = test_data['ip_demodulated']
    
    demodulated = components.demodulate(data_carriers)
    
    assert np.alltrue(exp_demodulated == demodulated)
def test_demodulate():
    data_carriers = test_data["ip_data_carriers"]
    exp_demodulated = test_data["ip_demodulated"]

    demodulated = components.demodulate(data_carriers)

    assert np.alltrue(exp_demodulated == demodulated)
def test_demodulate_edge_cases():
    data_carriers = np.array([1 + 2j, 9 + 0j])

    exp_demodulated = np.array([34, 59])

    demodulated = components.demodulate(data_carriers)

    assert np.alltrue(demodulated == exp_demodulated)
def test_demodulate_edge_cases():
    data_carriers = np.array([1+2j, 
                              9+0j,
                              ])
                              
    exp_demodulated = np.array([34,
                                59,
                                ])
    
    demodulated = components.demodulate(data_carriers)
    
    assert np.alltrue(demodulated == exp_demodulated)