From 82e0eaa31598664ad48ea449369d6b85e175d317 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 9 May 2012 20:33:11 +0200 Subject: [PATCH] tests: Check that 'workspace number ' opens a new workspace --- testcases/t/117-workspace.t | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testcases/t/117-workspace.t b/testcases/t/117-workspace.t index 6c9fc6e1..1d8888c7 100644 --- a/testcases/t/117-workspace.t +++ b/testcases/t/117-workspace.t @@ -134,6 +134,15 @@ cmd 'workspace number 4'; is(focused_ws(), '4: foo', 'now on workspace 4: foo'); ok(!workspace_exists('4'), 'workspace 4 still does not exist'); +################################################################################ +# Check that we "workspace number 5" will create workspace 5 if it does not yet +# exist. +################################################################################ + +ok(!workspace_exists('5'), 'workspace 5 does not exist'); +cmd 'workspace number 5'; +ok(workspace_exists('5'), 'workspace 5 was created'); + ################################################################################ # Verify that renaming workspaces works. ################################################################################ -- 2.39.5