Skip to content

Commit

Permalink
test : tests added.
Browse files Browse the repository at this point in the history
  • Loading branch information
sadrasabouri committed Jan 21, 2024
1 parent 45aa6be commit a458f59
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/function_test.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# -*- coding: utf-8 -*-
"""
>>> import os
>>> import time
>>> from nava import play, stop, stop_all
>>> play(os.path.join("others", "test.wav"))
>>> sound_id_1 = play(os.path.join("others", "test.wav"), async_mode=True)
>>> sound_id_1 == 1001
True
>>> sound_id_2 = play(os.path.join("others", "test.wav"), async_mode=True)
>>> sound_id_2 = play(os.path.join("others", "test.wav"), async_mode=True, loop=True)
>>> sound_id_2 == 1002
True
>>> sound_id_3 = play(os.path.join("others", "test.wav"), async_mode=True)
>>> sound_id_3 == 1003
True
>>> time.sleep(1)
>>> stop(1001)
>>> stop_all()
>>> from nava.functions import nava_help
Expand Down

0 comments on commit a458f59

Please sign in to comment.