Move test case to end-to-end suite.

This commit is contained in:
Dillon Kearns 2022-03-04 09:27:32 -08:00
parent bfffe9e43b
commit a937049993
3 changed files with 12 additions and 10 deletions

View File

@ -211,6 +211,17 @@ all =
, ( [ "community" ], "meetups" )
]
}
, globTestCase
{ name = "mix of match and capture with wildcards"
, glob =
Glob.succeed identity
|> Glob.match (Glob.literal "glob-test-cases/mix/")
|> Glob.match Glob.wildcard
|> Glob.match (Glob.literal "/")
|> Glob.capture Glob.wildcard
, expected =
[ "capture" ]
}
]
|> DataSource.combine
|> DataSource.map (describe "glob tests")

View File

@ -9,16 +9,7 @@ import Test exposing (Test, describe, test)
all : Test
all =
describe "glob"
[ test "mix of match and capture with wildcards" <|
\() ->
Glob.succeed identity
|> Glob.match Glob.wildcard
|> Glob.match (Glob.literal "/")
|> Glob.capture Glob.wildcard
|> expectAll
[ ( "match/capture", "capture" )
]
, test "mix of match and capture with wildcards 2" <|
[ test "mix of match and capture with wildcards 2" <|
\() ->
Glob.succeed identity
|> Glob.capture Glob.wildcard