-
-
Save ology/c34c036389ab454ae42b535b2a1d8a85 to your computer and use it in GitHub Desktop.
rtcontroller test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Test::More; | |
| use_ok 'MIDI::RtController'; | |
| # SKIP: { | |
| # skip 'live test', 7; | |
| my $obj = new_ok 'MIDI::RtController' => [ | |
| input => 'KeyLab mkII 49 MIDI', | |
| output => 'USB MIDI Interface', | |
| ]; | |
| is $obj->verbose, 0, 'verbose'; | |
| isa_ok $obj->loop, 'IO::Async::Loop'; | |
| is_deeply $obj->filters, {}, 'filters'; | |
| isa_ok $obj->_msg_channel, 'IO::Async::Channel'; | |
| isa_ok $obj->_midi_channel, 'IO::Async::Channel'; | |
| isa_ok $obj->midi_out, 'MIDI::RtMidi::FFI::Device'; | |
| # }; | |
| done_testing(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment