diff options
-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") |