diff options
author | Stephen Paul Weber <singpolyma@singpolyma.net> | 2012-04-30 09:38:03 -0500 |
---|---|---|
committer | Stephen Paul Weber <singpolyma@singpolyma.net> | 2012-04-30 09:38:03 -0500 |
commit | 905e4e82e295b2fa0f547e7c8d458c3f35944bcc (patch) | |
tree | a6d42a650a41d68a89113236369e534616f6f26c /Arbitrary.patch | |
parent | 9877a30e04b83d8ed24aee704ffe150dd0678d8d (diff) |
EmbeddedSignaturePacket
Diffstat (limited to 'Arbitrary.patch')
-rw-r--r-- | Arbitrary.patch | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Arbitrary.patch b/Arbitrary.patch index 8967f0b..f1f3824 100644 --- a/Arbitrary.patch +++ b/Arbitrary.patch | |||
@@ -1,12 +1,19 @@ | |||
1 | --- Data/OpenPGP/Arbitrary.hs 2012-04-27 12:38:11.492411339 -0500 | 1 | --- Data/OpenPGP/Arbitrary.hs 2012-04-27 12:38:11.492411339 -0500 |
2 | +++ arb.s 2012-04-27 12:37:57.176469214 -0500 | 2 | +++ arb.s 2012-04-27 12:37:57.176469214 -0500 |
3 | @@ -19,8 +19,7 @@ | 3 | @@ -14,13 +14,11 @@ |
4 | 0 -> do x1 <- arbitrary | ||
5 | x2 <- arbitrary | ||
6 | x3 <- arbitrary | ||
7 | - x4 <- arbitrary | ||
8 | - x5 <- arbitrary | ||
9 | + x4 <- resize 10 (listOf arbitrary) | ||
10 | + x5 <- resize 10 (listOf arbitrary) | ||
4 | x6 <- arbitrary | 11 | x6 <- arbitrary |
5 | x7 <- arbitrary | 12 | x7 <- arbitrary |
6 | x8 <- arbitrary | 13 | - x8 <- arbitrary |
7 | - x9 <- arbitrary | 14 | - x9 <- arbitrary |
8 | - return (SignaturePacket x1 x2 x3 x4 x5 x6 x7 x8 x9) | 15 | - return (SignaturePacket x1 x2 x3 x4 x5 x6 x7 x8 x9) |
9 | + return (signaturePacket x1 x2 x3 x4 x5 x6 x7 x8) | 16 | + return (signaturePacket 4 x1 x2 x3 x4 x5 x6 x7) |
10 | 1 -> do x1 <- arbitrary | 17 | 1 -> do x1 <- arbitrary |
11 | x2 <- arbitrary | 18 | x2 <- arbitrary |
12 | x3 <- arbitrary | 19 | x3 <- arbitrary |
@@ -74,6 +81,9 @@ | |||
74 | @@ -166 +165 @@ | 81 | @@ -166 +165 @@ |
75 | - 9 -> do x1 <- arbitrary | 82 | - 9 -> do x1 <- arbitrary |
76 | + 9 -> do x1 <- vectorOf 16 (elements (['0'..'9'] ++ ['A'..'F'])) | 83 | + 9 -> do x1 <- vectorOf 16 (elements (['0'..'9'] ++ ['A'..'F'])) |
84 | @@ -217 +216 @@ | ||
85 | - 22 -> do x1 <- arbitrary | ||
86 | + 22 -> do x1 <- suchThat arbitrary isSignaturePacket | ||
77 | @@ -169,2 +168 @@ | 87 | @@ -169,2 +168 @@ |
78 | - x2 <- arbitrary | 88 | - x2 <- arbitrary |
79 | - return (UnsupportedSignatureSubpacket x1 x2) | 89 | - return (UnsupportedSignatureSubpacket x1 x2) |