improve test · csamuelson/circuitpython@17497e4 · GitHub
Skip to content

Commit 17497e4

Browse files
committed
improve test
This test was written in such a way that having a wrong data type for the mp3 samples wasn't detected. Instead of using np.frombuffer(dtype=int16), just do arithmetic directly on the samples. During testing time we don't care if it might be a little slower or use a little more RAM than ulab, and we don't care whether it's actually an RMS calculation. Just that it's consistent and shows the audio data is correct, including its defined data type.
1 parent d365e2c commit 17497e4

2 files changed

Lines changed: 13 additions & 19 deletions

File tree

tests/circuitpython/issue9705.py

Lines changed: 3 additions & 9 deletions
Lines changed: 10 additions & 10 deletions

0 commit comments

Comments
 (0)