Skip to content

Commit

Permalink
Fix calls to StdlibRandomNextBytes in nockma eval tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman authored and janmasrovira committed Nov 6, 2024
1 parent 5bb2e3f commit 0055c6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Nockma/Eval/Positive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ anomaStdlibInterceptOnlyTests =
"call next bytes in sequence"
( do
gen <- callStdlib StdlibRandomInitGen [nockNatLiteral 777]
rgen1 <- callStdlib StdlibRandomNextBytes [nockNatLiteral 1, gen]
rgen2 <- callStdlib StdlibRandomNextBytes [nockNatLiteral 1, rgen1 >># OpAddress # [R]]
rgen1 <- callStdlib StdlibRandomNextBytes [gen, nockNatLiteral 1]
rgen2 <- callStdlib StdlibRandomNextBytes [rgen1 >># OpAddress # [R], nockNatLiteral 1]
return ((rgen1 >># OpAddress # [L]) # (rgen2 >># OpAddress # [L]))
)
(eqNock [nock| [44 251] |]),
Expand All @@ -423,8 +423,8 @@ anomaStdlibInterceptOnlyTests =
( do
gen <- callStdlib StdlibRandomInitGen [nockNatLiteral 777]
g1g2 <- callStdlib StdlibRandomSplit [gen]
n1 <- callStdlib StdlibRandomNextBytes [nockNatLiteral 1, g1g2 >># OpAddress # [L]]
n2 <- callStdlib StdlibRandomNextBytes [nockNatLiteral 1, g1g2 >># OpAddress # [R]]
n1 <- callStdlib StdlibRandomNextBytes [g1g2 >># OpAddress # [L], nockNatLiteral 1]
n2 <- callStdlib StdlibRandomNextBytes [g1g2 >># OpAddress # [R], nockNatLiteral 1]
return ((n1 >># OpAddress # [L]) # (n2 >># OpAddress # [L]))
)
( eqNock
Expand Down

0 comments on commit 0055c6a

Please sign in to comment.