Files
ggwave/bindings/python/test.py
Georgi Gerganov 2ed431fa81 Add python bindings + package (#10)
* 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
2021-01-17 17:36:50 +02:00

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)