Skip to content

Commit 02bba73

Browse files
author
Benjamin Moody
committed
test_record: test writing FLAC output files.
1 parent 2739564 commit 02bba73

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_record.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ def test_read_flac(self):
250250
f"Mismatch in {name}",
251251
)
252252

253+
# Test file writing
254+
record.wrsamp()
255+
record_write = wfdb.rdrecord("flacformats", physical=False)
256+
assert record == record_write
257+
253258
def test_read_flac_longduration(self):
254259
"""
255260
Three signals multiplexed in a FLAC file, over 2**24 samples.
@@ -628,6 +633,10 @@ def tearDownClass(cls):
628633
"100_3chan.hea",
629634
"a103l.hea",
630635
"a103l.mat",
636+
"flacformats.d0",
637+
"flacformats.d1",
638+
"flacformats.d2",
639+
"flacformats.hea",
631640
"s0010_re.dat",
632641
"s0010_re.hea",
633642
"s0010_re.xyz",

0 commit comments

Comments
 (0)