i3/testcases/t/15-ipc-workspaces.t

26 lines
514 B
Perl
Raw Normal View History

#!perl
# vim:ts=4:sw=4:expandtab
2010-03-27 10:20:38 -04:00
use Test::More tests => 3;
use Test::Exception;
use List::MoreUtils qw(all);
use FindBin;
use lib "$FindBin::Bin/lib";
use i3test;
2010-03-27 10:20:38 -04:00
use AnyEvent::I3;
2010-03-27 10:20:38 -04:00
my $i3 = i3;
####################
# Request workspaces
####################
2010-03-27 10:20:38 -04:00
my $workspaces = $i3->get_workspaces->recv;
ok(@{$workspaces} > 0, "More than zero workspaces found");
my $name_exists = all { defined($_->{name}) } @{$workspaces};
ok($name_exists, "All workspaces have a name");
diag( "Testing i3, Perl $], $^X" );