diff options
Diffstat (limited to 'modules/markup/csv/csv_test.go')
-rw-r--r-- | modules/markup/csv/csv_test.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/markup/csv/csv_test.go b/modules/markup/csv/csv_test.go index f050296cee..4d4e0871e9 100644 --- a/modules/markup/csv/csv_test.go +++ b/modules/markup/csv/csv_test.go @@ -13,9 +13,14 @@ import ( func TestRenderCSV(t *testing.T) { var parser Parser var kases = map[string]string{ - "a": "<table class=\"table\"><tr><td>a</td><tr></table>", - "1,2": "<table class=\"table\"><tr><td>1</td><td>2</td><tr></table>", - "<br/>": "<table class=\"table\"><tr><td><br/></td><tr></table>", + "a": "<table class=\"table\"><tr><td>a</td></tr></table>", + "1,2": "<table class=\"table\"><tr><td>1</td><td>2</td></tr></table>", + "1;2": "<table class=\"table\"><tr><td>1</td><td>2</td></tr></table>", + "1\t2": "<table class=\"table\"><tr><td>1</td><td>2</td></tr></table>", + "1|2": "<table class=\"table\"><tr><td>1</td><td>2</td></tr></table>", + "1,2,3;4,5,6;7,8,9\na;b;c": "<table class=\"table\"><tr><td>1,2,3</td><td>4,5,6</td><td>7,8,9</td></tr><tr><td>a</td><td>b</td><td>c</td></tr></table>", + "\"1,2,3,4\";\"a\nb\"\nc;d": "<table class=\"table\"><tr><td>1,2,3,4</td><td>a\nb</td></tr><tr><td>c</td><td>d</td></tr></table>", + "<br/>": "<table class=\"table\"><tr><td><br/></td></tr></table>", } for k, v := range kases { |