From: Michael Stapelberg Date: Fri, 12 Nov 2010 19:26:53 +0000 (+0100) Subject: add testcase for invalid commands X-Git-Tag: tree-pr1~123 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df2ded08d87d6b65e591e8f502ab97e826848816;p=i3%2Fi3 add testcase for invalid commands --- diff --git a/testcases/t/34-invalid-command.t b/testcases/t/34-invalid-command.t new file mode 100644 index 00000000..12380d46 --- /dev/null +++ b/testcases/t/34-invalid-command.t @@ -0,0 +1,16 @@ +#!perl +# vim:ts=4:sw=4:expandtab +# +# +# +use i3test tests => 1; + +my $i3 = i3("/tmp/nestedcons"); + +$i3->command("blargh!")->recv; + +my $tree = $i3->get_workspaces->recv; +my @nodes = @{$tree->{nodes}}; +ok(@nodes > 0, 'i3 still lives'); + +diag( "Testing i3, Perl $], $^X" );