Skip to content

Commit 60fad8d

Browse files
committed
Tiny cleanup
1 parent 63f73ef commit 60fad8d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Hedgehog.Xunit/InternalLogic.fs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,11 @@ module private PropertyBuilder =
213213
| e -> box e
214214

215215
let createJournal args =
216-
let parameterEntries =
217-
Array.zip parameters (List.toArray args)
218-
|> Array.map (fun (param, value) ->
219-
fun () -> TestParameter (param.Name, value))
220-
|> Array.toSeq
221-
Journal.ofSeq parameterEntries
216+
args
217+
|> Seq.zip parameters
218+
|> Seq.map (fun (param, value) -> fun () -> TestParameter (param.Name, value))
219+
|> Array.ofSeq // not sure if journal will do multiple enumerations
220+
|> Journal.ofSeq
222221

223222
let wrapWithExceptionHandling (result: obj) : Property<unit> =
224223
match result with

0 commit comments

Comments
 (0)