File: inflush.test

package info (click to toggle)
snack 2.0.7-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,240 kB
  • ctags: 2,672
  • sloc: ansic: 26,124; sh: 7,557; tcl: 936; python: 431; makefile: 323
file content (29 lines) | stat: -rw-r--r-- 410 bytes parent folder | download
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.0

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