File: inflush.test

package info (click to toggle)
snack 2.2.10.20090623-dfsg-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,276 kB
  • ctags: 3,784
  • sloc: ansic: 32,654; sh: 8,558; tcl: 1,086; python: 701; makefile: 564
file content (29 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Commands covered: sound flush info
#

package require -exact snack 2.2

if {[lsearch [namespace children] ::tcltest] == -1} {
    package require tcltest
    namespace import ::tcltest::*
}

test inflush-1.1 {flush/info commands} {
  set s [snack::sound snd -load ex1.wav]
  $s flush
  set res [$s info]
  $s destroy
  set res
} {0 16000 0 0 Lin16 1 WAV 44}


# cleanup
::tcltest::cleanupTests
return