# Commands covered: snack::mixer
#

package require -exact snack 2.2

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

test mixer-1.1 {snack::mixer command} {
  catch {snack::mixer junk} msg
  set msg
} {bad option "junk": must be devices, select, input, inputs, output, outputs, channels, volume, lines, or update}

test mixer-1.2 {snack::mixer devices command} {
  set devs [snack::mixer devices]
  set res [expr [string length $devs] > 0]
  set res
} 1

test mixer-1.3 {snack::mixer select command} {
  catch {snack::mixer select junk} msg
  set msg
} {No such device: junk}

# cleanup
::tcltest::cleanupTests
return
