Skip to content

Commit 951eabf

Browse files
author
Benjamin Moody
committed
Test round-trip writing and reading of format 24.
In order to test that both reading and writing of format 24 work correctly, we need to write a record using 'wrsamp', then read back what we wrote using 'rdrecord' and check that the result matches the original record. (Previously, 'wrsamp' worked correctly for format 24 but 'rdrecord' did not, and thus the round-trip test would have failed.)
1 parent 9eb32c4 commit 951eabf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_1e(self):
140140
# Test file writing
141141
record_2 = wfdb.rdrecord('sample-data/n8_evoked_raw_95_F1_R9', physical=False)
142142
record_2.wrsamp()
143-
record_write = wfdb.rdrecord('sample-data/n8_evoked_raw_95_F1_R9', physical=False)
143+
record_write = wfdb.rdrecord('n8_evoked_raw_95_F1_R9', physical=False)
144144

145145
assert np.array_equal(sig, sig_target)
146146
assert record.__eq__(record_pn)

0 commit comments

Comments
 (0)