Make a record

This commit is contained in:
Jeroen Engels 2024-04-07 20:03:58 +02:00
parent 847decf1b4
commit be560d38be
2 changed files with 5 additions and 2 deletions

View File

@ -48,9 +48,11 @@ compact filePatterns =
}
toStrings : Summary -> List { string : String, included : Bool }
toStrings : Summary -> { files : List { string : String, included : Bool }, excludedFolders : List String }
toStrings summary =
[]
{ files = []
, excludedFolders = summary.excludeFoldersStrings
}
compactBase : List FilePattern -> Summary -> Result (List String) Summary

View File

@ -113,6 +113,7 @@ toStringsTest =
Ok summary ->
summary
|> FilePattern.toStrings
|> .files
|> Expect.equal []
Err _ ->