Skip to content

Commit

Permalink
TDD: show bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Oct 24, 2022
1 parent 1a29f74 commit 2deb192
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pybv/tests/test_bv_writer.py
@@ -1,5 +1,6 @@
"""BrainVision writer tests."""

import itertools
import os
import os.path as op
import re
Expand Down Expand Up @@ -66,6 +67,21 @@
data[-1, :] = 0.0


def test_non_stim_resp_event_first(tmpdir):
"""Test that events are handled well regardless of which type comes first."""
kwargs = dict(
data=data,
sfreq=sfreq,
ch_names=ch_names,
fname_base=fname,
folder_out=tmpdir,
overwrite=True,
)
for i in itertools.permutations(range(len(events))):
ev = list(np.array(events)[list(i)])
write_brainvision(**kwargs, events=ev)


@pytest.mark.parametrize(
"events_errormsg",
[
Expand Down

0 comments on commit 2deb192

Please sign in to comment.