Skip to content

Commit 751ebef

Browse files
author
Benjamin Moody
committed
test_record: test writing FLAC output files.
1 parent f61d3a1 commit 751ebef

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/test_record.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_1f(self):
219219
"Mismatch in %s" % name,
220220
)
221221

222-
def test_read_flac(self):
222+
def test_read_write_flac(self):
223223
"""
224224
All FLAC formats, multiple signal files in one record.
225225
@@ -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)