blob: c58bbfa40525ffa20c19b684cc65918e9bed71d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import Data.JLD.Prelude
import Data.JLD.Mime (mimeType)
import Test.Expansion (W3CExpansionTestList, expansionTests)
import Test.Tasty
import Network.HTTP.Req (GET (..), NoReqBody (..), defaultHttpConfig, header, https, jsonResponse, req, responseBody, runReq, (/:))
tests :: W3CExpansionTestList -> TestTree
tests jldExpansionTestList =
testGroup
"Tests"
[ expansionTests jldExpansionTestList
]
main :: IO ()
main = do
jldExpansionTestList <- runReq defaultHttpConfig do
responseBody <$> req GET w3cExpansionTestListUrl NoReqBody jsonResponse (header "Accept" mimeType)
defaultMain <| tests jldExpansionTestList
where
w3cExpansionTestListUrl = https "w3c.github.io" /: "json-ld-api" /: "tests" /: "expand-manifest.jsonld"
|