From 1fed7f73919be6a9a769ee933130ec579b9c4bc9 Mon Sep 17 00:00:00 2001 From: Vitalii Guzeev Date: Tue, 11 Sep 2018 17:21:15 +0300 Subject: [PATCH] Update tests --- test/FilesystemParseTest.hs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/FilesystemParseTest.hs b/test/FilesystemParseTest.hs index 8478ca3..ceae6f7 100644 --- a/test/FilesystemParseTest.hs +++ b/test/FilesystemParseTest.hs @@ -84,27 +84,27 @@ migrationParsingTestCases = [ ("valid_full", Right valid_full) , Right (valid_full { mId = "valid_no_timestamp", mTimestamp = Nothing })) , ("invalid_missing_required_fields" , Left $ "Could not parse migration " ++ - (fp "invalid_missing_required_fields.txt") ++ + (fp "invalid_missing_required_fields") ++ ":Error in " ++ - (show $ fp "invalid_missing_required_fields.txt") ++ + (show $ fp "invalid_missing_required_fields") ++ ": missing required field(s): " ++ "[\"Depends\"]") , ("invalid_field_name" , Left $ "Could not parse migration " ++ - (fp "invalid_field_name.txt") ++ + (fp "invalid_field_name") ++ ":Error in " ++ - (show $ fp "invalid_field_name.txt") ++ + (show $ fp "invalid_field_name") ++ ": unrecognized field found") , ("invalid_syntax" , Left $ "Could not parse migration " ++ - (fp "invalid_syntax.txt") ++ + (fp "invalid_syntax") ++ ":user error (syntax error: line 7, " ++ "column 0)") , ("invalid_timestamp" , Left $ "Could not parse migration " ++ - (fp "invalid_timestamp.txt") ++ + (fp "invalid_timestamp") ++ ":Error in " ++ - (show $ fp "invalid_timestamp.txt") ++ + (show $ fp "invalid_timestamp") ++ ": unrecognized field found") ]