From f74506daaa13584329b9eb060d36e1cbd1fdd1d7 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Sat, 31 Dec 2016 18:11:23 +0100 Subject: [PATCH] Add test case for filename surrounded by whitespace --- parse_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/parse_test.go b/parse_test.go index aa9dba3..ab44c38 100644 --- a/parse_test.go +++ b/parse_test.go @@ -55,6 +55,7 @@ var listTests = []line{ // dir and file names that contain multiple spaces {"drwxr-xr-x 3 110 1002 3 Dec 02 2009 spaces dir name", "spaces dir name", 0, EntryTypeFolder, time.Date(2009, time.December, 2, 0, 0, 0, 0, time.UTC)}, {"-rwxr-xr-x 3 110 1002 1234567 Dec 02 2009 file name", "file name", 1234567, EntryTypeFile, time.Date(2009, time.December, 2, 0, 0, 0, 0, time.UTC)}, + {"-rwxr-xr-x 3 110 1002 1234567 Dec 02 2009 foo bar ", " foo bar ", 1234567, EntryTypeFile, time.Date(2009, time.December, 2, 0, 0, 0, 0, time.UTC)}, } // Not supported, we expect a specific error message