(t *testing.T)
| 109 | } |
| 110 | |
| 111 | func TestDiff(t *testing.T) { |
| 112 | for _, testCase := range diffCases { |
| 113 | actualShort := testCase.value.Format(false) |
| 114 | if actualShort != testCase.expectedShort { |
| 115 | t.Errorf("\n%s\nDOES NOT MATCH SHORT\n%s\n", actualShort, testCase.expectedShort) |
| 116 | } |
| 117 | |
| 118 | actualLong := testCase.value.Format(true) |
| 119 | if actualLong != testCase.expectedLong { |
| 120 | t.Errorf("\n%s\nDOES NOT MATCH LONG\n%s\n", actualLong, testCase.expectedLong) |
| 121 | } |
| 122 | } |
| 123 | } |