]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/191-resize-levels.t
Merge branch 'next' into master
[i3/i3] / testcases / t / 191-resize-levels.t
index 230a491545b31cff493656653d3273b27a0b2182..9e483230b25329f6ab701c2b3f6a3cea0226028a 100644 (file)
@@ -1,5 +1,19 @@
 #!perl
 # vim:ts=4:sw=4:expandtab
+#
+# Please read the following documents before working on tests:
+# • https://build.i3wm.org/docs/testsuite.html
+#   (or docs/testsuite)
+#
+# • https://build.i3wm.org/docs/lib-i3test.html
+#   (alternatively: perldoc ./testcases/lib/i3test.pm)
+#
+# • https://build.i3wm.org/docs/ipc.html
+#   (or docs/ipc)
+#
+# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
+#   (unless you are already familiar with Perl)
+#
 # Verifies that you can resize across different levels of containers even when
 # they are all of the same orientation.
 # (Ticket #754)
@@ -23,7 +37,7 @@ cmd 'resize grow left 10px or 25ppt';
 
 my ($nodes, $focus) = get_ws_content($tmp);
 
-ok(cmp_float($nodes->[0]->{percent}, 0.25), 'left container got only 25%');
-ok(cmp_float($nodes->[1]->{percent}, 0.75), 'right container got 75%');
+cmp_float($nodes->[0]->{percent}, 0.25, 'left container got only 25%');
+cmp_float($nodes->[1]->{percent}, 0.75, 'right container got 75%');
 
 done_testing;