mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-07 01:11:22 +08:00
* wip : python package * wip : minor fixes * wip : upload package to main pypi * wip : initial text encoding * wip : extending C api * wip : use map of global instances * wip : added decode functionality * update main README
17 lines
257 B
Python
17 lines
257 B
Python
import sys
|
|
import ggwave
|
|
|
|
testFailed = False
|
|
|
|
n, samples = ggwave.encode("hello python")
|
|
|
|
if not (samples and n > 1024):
|
|
testFailed = True
|
|
|
|
if testFailed:
|
|
print("Some of the tests failed!")
|
|
else:
|
|
print("All tests passed!")
|
|
|
|
sys.exit(testFailed)
|