mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-15 21:51:04 +00:00
fix(examples): Fix test according to bug [fixes LNG-193] (#85)
This commit is contained in:
parent
c3479a09b9
commit
0db0b66062
@ -11,5 +11,6 @@ func lng193Bug(peer: string, closurePeer: string) -> u16:
|
|||||||
c = getClosure(42, closurePeer)
|
c = getClosure(42, closurePeer)
|
||||||
b = c
|
b = c
|
||||||
a = b
|
a = b
|
||||||
res = a(1) + b(2) + c(3)
|
res1 = a(1) + a(2) -- Call two times for
|
||||||
<- res
|
res2 = b(3) + b(4) -- bug to appear
|
||||||
|
<- res1 + res2
|
||||||
|
@ -530,7 +530,7 @@ describe('Testing examples', () => {
|
|||||||
|
|
||||||
it('closureReturnRename.aqua bug LNG-193', async () => {
|
it('closureReturnRename.aqua bug LNG-193', async () => {
|
||||||
let result = await lng193BugCall();
|
let result = await lng193BugCall();
|
||||||
expect(result).toEqual(1 + 42 + 2 + 42 + 3 + 42)
|
expect(result).toEqual((1 + 42) + (2 + 42) + (3 + 42) + (4 + 42))
|
||||||
}, 20000)
|
}, 20000)
|
||||||
|
|
||||||
it('closures.aqua', async () => {
|
it('closures.aqua', async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user