diff options
author | Stevan Radakovic <stevan.radakovic@linaro.org> | 2018-03-22 09:54:02 +0100 |
---|---|---|
committer | Stevan Radakovic <stevan.radakovic@linaro.org> | 2018-03-22 09:54:02 +0100 |
commit | 32e36dc7e30d12f59b2bbc58643b039e648b6ea9 (patch) | |
tree | 12d4e6a165d9c551a32fc82d670814b7f96e88f1 | |
parent | a4a25e3eabe66e10d03df326d58b0bb86147676c (diff) |
Update test file.
-rw-r--r-- | audio/fingerprint.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/audio/fingerprint.py b/audio/fingerprint.py index 3e666a4..ae8aed7 100644 --- a/audio/fingerprint.py +++ b/audio/fingerprint.py @@ -1,5 +1,12 @@ import acoustid # TODO: if two fingerprints are the same, the test pass, otherwise not. -print(acoustid.fingerprint_file("audio/resources/song.mp3")[1]) -print(acoustid.fingerprint_file("song2.mp3")[1]) +fingerprint_original = acoustid.fingerprint_file("audio/resources/song.mp3")[1] +fingerprint_copy = acoustid.fingerprint_file("song2.mp3")[1] +print(fingerprint_original) +print(fingerprint_copy) + +if fingerprint_original == fingerprint_copy: + print("Audio test: pass") +else: + print("Audio test: fail") |