Adding brackets in all cases, like `format("[%6s][%6s]", true, false)` is better.
And, I think you should add a test case which less than 4 width is specified.