Skip to content

Commit

Permalink
fix : function_test updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Jan 16, 2024
1 parent d63fa9a commit 8175182
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions test/function_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# -*- coding: utf-8 -*-
"""
>>> import os
>>> from nava import play
>>> sound_id = play(os.path.join("others", "test.wav"))
>>> from nava import play, stop, stop_all
>>> play(os.path.join("others", "test.wav"), async_mode=False)
>>> 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 == 1002
True
>>> sound_id_3 = play(os.path.join("others", "test.wav"), async_mode=True)
>>> sound_id_3 == 1003
True
>>> stop(1001)
>>> stop_all()
>>> from nava.functions import nava_help
>>> nava_help()
<BLANKLINE>
Expand Down

0 comments on commit 8175182

Please sign in to comment.