Commit 14048dd
Benjamin Moody
Add a test case for all WFDB binary signal formats.
The record "binformats" contains one signal in each of the ten WFDB
binary formats (8, 16, 61, 80, 160, 212, 310, 311, 24, and 32.) In
this record, sample j of signal i is equal to:
(i + 16843019 * j) % ((1 << adcres) - 1) + 1 - (1 << (adcres - 1)))
Note that the length of the record is 499 samples, so each of the
bit-packed data files ends with an incomplete data block.
Use this record to test that it is possible to read all of the formats
correctly, including when we skip one or two samples from the start
and/or end of the record. (Skipping samples is expected to give
incorrect results for format 8, so that signal is not required to
match.)
We do not test writing, since not all formats are currently supported
by wr_dat_file.1 parent 8b3d307 commit 14048dd
13 files changed
Lines changed: 43 additions & 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments