-sigs = testGroup "Signatures" [ basic
- , one
- , two
- ]
-
-basic = testGroup "Basic Macaroon" [ none , sigQC ]
-
-none = testCase "No caveat" $
- Ok @=? verifySig sec m
-
-sigQC = testProperty "Random" $
- \sm -> verifySig (secret sm) (macaroon sm) == Ok
-
-one = testCase "Macaroon with one caveat" $
- Ok @=? verifySig sec m2
-
-two = testCase "Macaroon with two caveats" $
- Ok @=? verifySig sec m3
-
-exactCavs = testGroup "Exact Caveats" [ zero', one', two' , one'', two'']