@@ -43,14 +43,14 @@ suite("CenterAlign - FirstColumnPadCalculator tests", () => {
4343 assert . equal ( sut . getRightPadding ( " " , table , 1 , 0 ) , " " ) ;
4444 } ) ;
4545
46- test ( "getLeftPadding() First column equal to maxColLength gets padded with one character " , ( ) => {
46+ test ( "getLeftPadding() First column equal to maxColLength is not padded " , ( ) => {
4747 const sut = createCalculator ( ) ;
4848 const table = tableFor ( [
4949 [ "aaaaa" , "bbbbb" , "ccccc" ] ,
5050 [ "aaaaa" , "bbbbb" , "ccccc" ]
5151 ] ) ;
5252
53- assert . equal ( sut . getLeftPadding ( " " , table , 1 , 0 ) , " " ) ;
53+ assert . equal ( sut . getLeftPadding ( " " , table , 1 , 0 ) , "" ) ;
5454 } ) ;
5555
5656 test ( "getRightPadding() First column 1 char shorter than maxColLength gets padded with one character" , ( ) => {
@@ -83,14 +83,14 @@ suite("CenterAlign - FirstColumnPadCalculator tests", () => {
8383 assert . equal ( sut . getRightPadding ( " " , table , 1 , 0 ) , " " ) ;
8484 } ) ;
8585
86- test ( "getLeftPadding() First column 2 char shorter than maxColLength gets padded with 2 characters " , ( ) => {
86+ test ( "getLeftPadding() First column 2 char shorter than maxColLength is padded with one character " , ( ) => {
8787 const sut = createCalculator ( ) ;
8888 const table = tableFor ( [
8989 [ "aaaaa" , "bbbbb" , "ccccc" ] ,
9090 [ "aaa" , "bbbbb" , "ccccc" ]
9191 ] ) ;
9292
93- assert . equal ( sut . getLeftPadding ( " " , table , 1 , 0 ) , " " ) ;
93+ assert . equal ( sut . getLeftPadding ( " " , table , 1 , 0 ) , " " ) ;
9494 } ) ;
9595
9696 test ( "getRightPadding() First column 3 char shorter than maxColLength gets padded with 2 characters" , ( ) => {
@@ -123,14 +123,14 @@ suite("CenterAlign - FirstColumnPadCalculator tests", () => {
123123 assert . equal ( sut . getRightPadding ( " " , table , 1 , 0 ) , " " ) ;
124124 } ) ;
125125
126- test ( "getLeftPadding() First column 4 char shorter than maxColLength gets padded with 3 characters" , ( ) => {
126+ test ( "getLeftPadding() First column 4 char shorter than maxColLength gets padded with 2 characters" , ( ) => {
127127 const sut = createCalculator ( ) ;
128128 const table = tableFor ( [
129129 [ "aaaaa" , "bbbbb" , "ccccc" ] ,
130130 [ "a" , "bbbbb" , "ccccc" ]
131131 ] ) ;
132132
133- assert . equal ( sut . getLeftPadding ( " " , table , 1 , 0 ) , " " ) ;
133+ assert . equal ( sut . getLeftPadding ( " " , table , 1 , 0 ) , " " ) ;
134134 } ) ;
135135
136136 test ( "getRightPadding() First column is empty string gets padded with 3 characters" , ( ) => {
0 commit comments