From 931467682f2a4b57c14eb4565e13d72444730334 Mon Sep 17 00:00:00 2001 From: Joe Polny Date: Tue, 22 Oct 2024 09:33:26 -0400 Subject: [PATCH] test: add wideRatio test --- .../artifacts/MathTest.approval.teal | 83 ++++++++++++++++++- tests/contracts/artifacts/MathTest.arc32.json | 14 +++- tests/contracts/artifacts/MathTest.arc4.json | 7 ++ .../artifacts/MathTest.arc56_draft.json | 27 +++++- tests/contracts/math.algo.ts | 4 + tests/math.test.ts | 5 ++ 6 files changed, 134 insertions(+), 6 deletions(-) diff --git a/tests/contracts/artifacts/MathTest.approval.teal b/tests/contracts/artifacts/MathTest.approval.teal index 612b21d83..860e2b7f8 100644 --- a/tests/contracts/artifacts/MathTest.approval.teal +++ b/tests/contracts/artifacts/MathTest.approval.teal @@ -2039,6 +2039,86 @@ uintFromHex: pushbytes 0x00000000000000000000000000000000000000000000000000000000000000ff retsub +// wideRatioTest()uint64 +*abi_route_wideRatioTest: + // The ABI return prefix + byte 0x151f7c75 + + // execute wideRatioTest()uint64 + callsub wideRatioTest + itob + concat + log + int 1 + return + +// wideRatioTest(): uint64 +wideRatioTest: + proto 0 1 + + // tests/contracts/math.algo.ts:230 + // return wideRatio([Uint<64>('18446744073709551615'), 2, 3, 4, 5], [2, 3, 4, 5]); + int 18446744073709551615 + pushint 2 + mulw + pushint 3 + uncover 2 + dig 1 + * + cover 2 + mulw + cover 2 + + + swap + pushint 4 + uncover 2 + dig 1 + * + cover 2 + mulw + cover 2 + + + swap + pushint 5 + uncover 2 + dig 1 + * + cover 2 + mulw + cover 2 + + + swap + pushint 2 + pushint 3 + mulw + pushint 4 + uncover 2 + dig 1 + * + cover 2 + mulw + cover 2 + + + swap + pushint 5 + uncover 2 + dig 1 + * + cover 2 + mulw + cover 2 + + + swap + divmodw + pop + pop + swap + ! + + // wideRatio failed + assert + retsub + *abi_route_createApplication: int 1 return @@ -2093,8 +2173,9 @@ uintFromHex: pushbytes 0x274d7705 // method "unsafeVariables()uint64" pushbytes 0x92465d08 // method "foobar(uint128)uint128" pushbytes 0xf01facce // method "uintFromHex()uint256" + pushbytes 0x5ac8a0a0 // method "wideRatioTest()uint64" txna ApplicationArgs 0 - match *abi_route_u64plus *abi_route_u64minus *abi_route_u64mul *abi_route_u64div *abi_route_u256plus *abi_route_u256minus *abi_route_u256mul *abi_route_u256div *abi_route_u64Return256 *abi_route_maxU64 *abi_route_exponent *abi_route_variableTypeHint *abi_route_uint8plus *abi_route_uint8exp *abi_route_plusEquals *abi_route_plusEqualsFromGlobal *abi_route_boxTest *abi_route_unsafeMethodArgs *abi_route_uint256ComparisonType *abi_route_squareRoot256 *abi_route_squareRoot64 *abi_route_addressToBigInt *abi_route_u8Tou64 *abi_route_funcName *abi_route_bigintPlus *abi_route_bitwiseOr *abi_route_bitwiseAnd *abi_route_bitwiseXor *abi_route_bitwiseOrU256 *abi_route_bitwiseAndU256 *abi_route_bitwiseXorU256 *abi_route_bitwiseNot *abi_route_bitwiseNotU256 *abi_route_mulw *abi_route_addw *abi_route_expw *abi_route_divw *abi_route_divmodw *abi_route_unsafeVariables *abi_route_foobar *abi_route_uintFromHex + match *abi_route_u64plus *abi_route_u64minus *abi_route_u64mul *abi_route_u64div *abi_route_u256plus *abi_route_u256minus *abi_route_u256mul *abi_route_u256div *abi_route_u64Return256 *abi_route_maxU64 *abi_route_exponent *abi_route_variableTypeHint *abi_route_uint8plus *abi_route_uint8exp *abi_route_plusEquals *abi_route_plusEqualsFromGlobal *abi_route_boxTest *abi_route_unsafeMethodArgs *abi_route_uint256ComparisonType *abi_route_squareRoot256 *abi_route_squareRoot64 *abi_route_addressToBigInt *abi_route_u8Tou64 *abi_route_funcName *abi_route_bigintPlus *abi_route_bitwiseOr *abi_route_bitwiseAnd *abi_route_bitwiseXor *abi_route_bitwiseOrU256 *abi_route_bitwiseAndU256 *abi_route_bitwiseXorU256 *abi_route_bitwiseNot *abi_route_bitwiseNotU256 *abi_route_mulw *abi_route_addw *abi_route_expw *abi_route_divw *abi_route_divmodw *abi_route_unsafeVariables *abi_route_foobar *abi_route_uintFromHex *abi_route_wideRatioTest // this contract does not implement the given ABI method for call NoOp err \ No newline at end of file diff --git a/tests/contracts/artifacts/MathTest.arc32.json b/tests/contracts/artifacts/MathTest.arc32.json index 7b2626ef6..75a1ce167 100644 --- a/tests/contracts/artifacts/MathTest.arc32.json +++ b/tests/contracts/artifacts/MathTest.arc32.json @@ -205,6 +205,11 @@ "no_op": "CALL" } }, + "wideRatioTest()uint64": { + "call_config": { + "no_op": "CALL" + } + }, "createApplication()void": { "call_config": { "no_op": "CREATE" @@ -244,7 +249,7 @@ } }, "source": { - "approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCmludGNibG9jayAxIDMyIDI1NiAxODQ0Njc0NDA3MzcwOTU1MTYxNQpieXRlY2Jsb2NrIDB4RkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRiAweDE1MWY3Yzc1IDB4MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMSAweDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAzZTggMHg2MjZmNzg0YjY1NzkgMHhGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRiAweCAweDY3NGI2NTc5IDB4RkZGRkZGRkZGRkZGRkZGRgoKLy8gVGhpcyBURUFMIHdhcyBnZW5lcmF0ZWQgYnkgVEVBTFNjcmlwdCB2MC4xMDQuMAovLyBodHRwczovL2dpdGh1Yi5jb20vYWxnb3JhbmRmb3VuZGF0aW9uL1RFQUxTY3JpcHQKCi8vIFRoaXMgY29udHJhY3QgaXMgY29tcGxpYW50IHdpdGggYW5kL29yIGltcGxlbWVudHMgdGhlIGZvbGxvd2luZyBBUk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CgllcnI=", "clear": "I3ByYWdtYSB2ZXJzaW9uIDEw" }, "contract": { @@ -842,6 +847,13 @@ "type": "uint256" } }, + { + "name": "wideRatioTest", + "args": [], + "returns": { + "type": "uint64" + } + }, { "name": "createApplication", "args": [], diff --git a/tests/contracts/artifacts/MathTest.arc4.json b/tests/contracts/artifacts/MathTest.arc4.json index 253de8e1d..046c6c3a9 100644 --- a/tests/contracts/artifacts/MathTest.arc4.json +++ b/tests/contracts/artifacts/MathTest.arc4.json @@ -593,6 +593,13 @@ "type": "uint256" } }, + { + "name": "wideRatioTest", + "args": [], + "returns": { + "type": "uint64" + } + }, { "name": "createApplication", "args": [], diff --git a/tests/contracts/artifacts/MathTest.arc56_draft.json b/tests/contracts/artifacts/MathTest.arc56_draft.json index 2a3cad1be..766d4c40a 100644 --- a/tests/contracts/artifacts/MathTest.arc56_draft.json +++ b/tests/contracts/artifacts/MathTest.arc56_draft.json @@ -839,6 +839,19 @@ ] } }, + { + "name": "wideRatioTest", + "args": [], + "returns": { + "type": "uint64" + }, + "actions": { + "create": [], + "call": [ + "NoOp" + ] + } + }, { "name": "createApplication", "args": [], @@ -1237,13 +1250,19 @@ }, { "pc": [ - 3013 + 3109 + ], + "errorMessage": "wideRatio failed" + }, + { + "pc": [ + 3127 ], "errorMessage": "this contract does not implement the given ABI method for create NoOp" }, { "pc": [ - 3347 + 3469 ], "errorMessage": "this contract does not implement the given ABI method for call NoOp" } @@ -1256,11 +1275,11 @@ } }, "source": { - "approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCmludGNibG9jayAxIDMyIDI1NiAxODQ0Njc0NDA3MzcwOTU1MTYxNQpieXRlY2Jsb2NrIDB4RkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRiAweDE1MWY3Yzc1IDB4MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw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9iaXR3aXNlQW5kVTI1NiAqYWJpX3JvdXRlX2JpdHdpc2VYb3JVMjU2ICphYmlfcm91dGVfYml0d2lzZU5vdCAqYWJpX3JvdXRlX2JpdHdpc2VOb3RVMjU2ICphYmlfcm91dGVfbXVsdyAqYWJpX3JvdXRlX2FkZHcgKmFiaV9yb3V0ZV9leHB3ICphYmlfcm91dGVfZGl2dyAqYWJpX3JvdXRlX2Rpdm1vZHcgKmFiaV9yb3V0ZV91bnNhZmVWYXJpYWJsZXMgKmFiaV9yb3V0ZV9mb29iYXIgKmFiaV9yb3V0ZV91aW50RnJvbUhleCAqYWJpX3JvdXRlX3dpZGVSYXRpb1Rlc3QKCgkvLyB0aGlzIGNvbnRyYWN0IGRvZXMgbm90IGltcGxlbWVudCB0aGUgZ2l2ZW4gQUJJIG1ldGhvZCBmb3IgY2FsbCBOb09wCgllcnI=", "clear": "I3ByYWdtYSB2ZXJzaW9uIDEw" }, "byteCode": { - "approval": "CiAEASCAAv///////////wEmCSD//////////////////////////////////////////wQVH3x1IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPoBmJveEtleRD/////////////////////AARnS2V5CP//////////MRgUgQYLMRkIjQwLAQAAAAAAAAAAAAAK8wAAAAAAAAAAAAAAgAQVH3x1NhoCFzYaAReIAAYWULCBAUOKAgGL/4v+CImABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYv/i/4JiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBi/+L/guJgAQVH3x1NhoCFzYaAReIAAYWULCBAUOKAgGL/4v+ComABBUffHU2GgJJFYEgEkQ2GgFJFYEgEkSIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigIBi/+L/qCJgAQVH3x1NhoCSRWBIBJENhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oCAYv/i/6hiYAEFR98dTYaAkkVgSASRDYaAUkVgSASRIgAN0mTgYACDkSAIP//////////////////////////////////////////rEkVSYEgCUxSULCBAUOKAgGL/4v+o4mABBUffHU2GgJJFYEgEkQ2GgFJFYEgEkSIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigIBi/+L/qKJgAQVH3x1NhoCFzYaAReIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigIBi/+L/ggWiYAEFR98dYgABhZQsIEBQ4oAAYH///////////8BiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBi/+L/pSJgAQVH3x1NhoCSRWBARJEFzYaAUkVgQESRBeIAA8WSZOBEA5EVwYCULCBAUOKAgGAAIv/i/4IjACLAIwAiYAEFR98dTYaAkkVgQESRBc2GgFJFYEBEkQXiAAPFkmTgQgORFcHAVCwgQFDigIBi/+L/giJgAQVH3x1NhoCSRWBARJEFzYaAUkVgQESRBeIAA8WSZOBCA5EVwcBULCBAUOKAgGL/4v+lImABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYAAi/+MAIsAi/4IjACLAIwAiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBgARnS2V5i/9ngARnS2V5ZIv+CIAEZ0tleUxngARnS2V5ZImABBUffHWIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigABgAZib3hLZXmAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv4AGYm94S2V5vkSAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABoIAGYm94S2V5SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJMv4AGYm94S2V5vkSJigEBi/+JgAQVH3x1NhoCSRWBIBJENhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oCAYAAi/+L/qCMAIsASZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFKI/2WMAIk2GgJJFYEgEkQ2GgFJFYEgEkSIAAOBAUOKAgCAAIv/i/6hjACLAIAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAClQQANgAdub25aZXJvsEIAB4AEemVyb7CJgAQVH3x1NhoCSRWBIBJENhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oCAYv/i/6jlomABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYv/i/4LkomABBUffHU2GgFJFYEgEkSIAA2AAQCBAE8CVFCwgQFDigEBi/8xAKWJgAQVH3x1iAAGFlCwgQFDigABgACBB4wAiwCMAImKAgCL/ov/DUSJNhoBSRWBIBJEiAADgQFDigEAgbkKi/9Jk4EIDkRXHwEXiP/SiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBgABJi/8WjACL/haMAYsAiwGgSZOBQA5EgAj//////////6xJFUmBCAlMUheMAEYBiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBi/+L/hmJgAQVH3x1NhoCFzYaAReIAAYWULCBAUOKAgGL/4v+GomABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYv/i/4biYAEFR98dTYaAkkVgSASRDYaAUkVgSASRIgAN0mTgYACDkSAIP//////////////////////////////////////////rEkVSYEgCUxSULCBAUOKAgGL/4v+q4mABBUffHU2GgJJFYEgEkQ2GgFJFYEgEkSIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigIBi/+L/qyJgAQVH3x1NhoCSRWBIBJENhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oCAYv/i/6tiYAEFR98dTYaAReIAAYWULCBAUOKAQGL/xyJgAQVH3x1NhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oBAYv/romABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYAASYv/i/4djACMAYsAjABGAYmABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYAASYv/i/4ejACMAYsAjABGAYmABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYAASYv/i/6VjACMAYsAjABGAYmABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYEAi/+L/peJgAQVH3x1NhoCFzYaAReIAAYWULCBAUOKAgGAAEcDgQCL/4EAi/4fjACMAYwCjAOLAowARgOJgAQVH3x1iAAGFlCwgQFDigABgABHAoAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7msoCMAIAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+iMAYsAgCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD6KKMAIsASZOBQA5EgAj//////////6xJFUmBCAlMUheMAosCjABGAomABBUffHU2GgFJFYEQEkSIACdJk4GAAQ5EgBD/////////////////////rEkVSYEQCUxSULCBAUOKAQGAAIv/gBAAAAAAAAAAAAAAAAAAAHUwokmTgYABDkSAEP////////////////////+sSRVJgRAJTFKMAIsAjACJgAQVH3x1iAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oAAYAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP+JgQFDgAS4RHs2NhoAjgH/8ACABDzm8a+ABAAxoYaABOUuQ5SABJUNR4mABGW92m6ABApq0oSABPBEvySABMSPjAWABPLh1jKABDixo56ABGwTbx2ABCLaJQKABKL+rWyABNIlb3qABMF9Yk6ABFyrBDiABFiYnM2ABEgwtN6ABOHFXOWABH0dQm6ABBwpgfGABLfKBLmABLuVIziABAEo4nuABPkWzbOABFJzdUWABHnBrcCABCJHSryABAWT/fiABAb7kzeABCZJPXiABOnCLuqABO3j6byABC5KIWSABFATS1qABPU6/5uABMr3EQ2ABL7Q44aABCdNdwWABJJGXQiABPAfrM42GgCOKfOz89Pz8/QT9DP0jvTp9UT1n/Xx9g/2L/Zs9qH21vcC9z/4J/i/+SD5fPmd+cX57PoR+lz6fPqc+rz7F/ty+8375/w3/GT8kfy+/OD9Fv3A/jwA", + "approval": "CiAEASCAAv///////////wEmCSD//////////////////////////////////////////wQVH3x1IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPoBmJveEtleRD/////////////////////AARnS2V5CP//////////MRgUgQYLMRkIjQwLcwAAAAAAAAAAAAALZQAAAAAAAAAAAAAAgAQVH3x1NhoCFzYaAReIAAYWULCBAUOKAgGL/4v+CImABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYv/i/4JiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBi/+L/guJgAQVH3x1NhoCFzYaAReIAAYWULCBAUOKAgGL/4v+ComABBUffHU2GgJJFYEgEkQ2GgFJFYEgEkSIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigIBi/+L/qCJgAQVH3x1NhoCSRWBIBJENhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oCAYv/i/6hiYAEFR98dTYaAkkVgSASRDYaAUkVgSASRIgAN0mTgYACDkSAIP//////////////////////////////////////////rEkVSYEgCUxSULCBAUOKAgGL/4v+o4mABBUffHU2GgJJFYEgEkQ2GgFJFYEgEkSIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigIBi/+L/qKJgAQVH3x1NhoCFzYaAReIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigIBi/+L/ggWiYAEFR98dYgABhZQsIEBQ4oAAYH///////////8BiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBi/+L/pSJgAQVH3x1NhoCSRWBARJEFzYaAUkVgQESRBeIAA8WSZOBEA5EVwYCULCBAUOKAgGAAIv/i/4IjACLAIwAiYAEFR98dTYaAkkVgQESRBc2GgFJFYEBEkQXiAAPFkmTgQgORFcHAVCwgQFDigIBi/+L/giJgAQVH3x1NhoCSRWBARJEFzYaAUkVgQESRBeIAA8WSZOBCA5EVwcBULCBAUOKAgGL/4v+lImABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYAAi/+MAIsAi/4IjACLAIwAiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBgARnS2V5i/9ngARnS2V5ZIv+CIAEZ0tleUxngARnS2V5ZImABBUffHWIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigABgAZib3hLZXmAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv4AGYm94S2V5vkSAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABoIAGYm94S2V5SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJMv4AGYm94S2V5vkSJigEBi/+JgAQVH3x1NhoCSRWBIBJENhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oCAYAAi/+L/qCMAIsASZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFKI/2WMAIk2GgJJFYEgEkQ2GgFJFYEgEkSIAAOBAUOKAgCAAIv/i/6hjACLAIAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAClQQANgAdub25aZXJvsEIAB4AEemVyb7CJgAQVH3x1NhoCSRWBIBJENhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oCAYv/i/6jlomABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYv/i/4LkomABBUffHU2GgFJFYEgEkSIAA2AAQCBAE8CVFCwgQFDigEBi/8xAKWJgAQVH3x1iAAGFlCwgQFDigABgACBB4wAiwCMAImKAgCL/ov/DUSJNhoBSRWBIBJEiAADgQFDigEAgbkKi/9Jk4EIDkRXHwEXiP/SiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBgABJi/8WjACL/haMAYsAiwGgSZOBQA5EgAj//////////6xJFUmBCAlMUheMAEYBiYAEFR98dTYaAhc2GgEXiAAGFlCwgQFDigIBi/+L/hmJgAQVH3x1NhoCFzYaAReIAAYWULCBAUOKAgGL/4v+GomABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYv/i/4biYAEFR98dTYaAkkVgSASRDYaAUkVgSASRIgAN0mTgYACDkSAIP//////////////////////////////////////////rEkVSYEgCUxSULCBAUOKAgGL/4v+q4mABBUffHU2GgJJFYEgEkQ2GgFJFYEgEkSIADdJk4GAAg5EgCD//////////////////////////////////////////6xJFUmBIAlMUlCwgQFDigIBi/+L/qyJgAQVH3x1NhoCSRWBIBJENhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oCAYv/i/6tiYAEFR98dTYaAReIAAYWULCBAUOKAQGL/xyJgAQVH3x1NhoBSRWBIBJEiAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oBAYv/romABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYAASYv/i/4djACMAYsAjABGAYmABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYAASYv/i/4ejACMAYsAjABGAYmABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYAASYv/i/6VjACMAYsAjABGAYmABBUffHU2GgIXNhoBF4gABhZQsIEBQ4oCAYEAi/+L/peJgAQVH3x1NhoCFzYaAReIAAYWULCBAUOKAgGAAEcDgQCL/4EAi/4fjACMAYwCjAOLAowARgOJgAQVH3x1iAAGFlCwgQFDigABgABHAoAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7msoCMAIAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+iMAYsAgCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD6KKMAIsASZOBQA5EgAj//////////6xJFUmBCAlMUheMAosCjABGAomABBUffHU2GgFJFYEQEkSIACdJk4GAAQ5EgBD/////////////////////rEkVSYEQCUxSULCBAUOKAQGAAIv/gBAAAAAAAAAAAAAAAAAAAHUwokmTgYABDkSAEP////////////////////+sSRVJgRAJTFKMAIsAjACJgAQVH3x1iAA3SZOBgAIORIAg//////////////////////////////////////////+sSRVJgSAJTFJQsIEBQ4oAAYAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP+JgAQVH3x1iAAGFlCwgQFDigABgf///////////wGBAh2BA08CSwELTgIdTgIITIEETwJLAQtOAh1OAghMgQVPAksBC04CHU4CCEyBAoEDHYEETwJLAQtOAh1OAghMgQVPAksBC04CHU4CCEwfSEhMFESJgQFDgAS4RHs2NhoAjgH/8ACABDzm8a+ABAAxoYaABOUuQ5SABJUNR4mABGW92m6ABApq0oSABPBEvySABMSPjAWABPLh1jKABDixo56ABGwTbx2ABCLaJQKABKL+rWyABNIlb3qABMF9Yk6ABFyrBDiABFiYnM2ABEgwtN6ABOHFXOWABH0dQm6ABBwpgfGABLfKBLmABLuVIziABAEo4nuABPkWzbOABFJzdUWABHnBrcCABCJHSryABAWT/fiABAb7kzeABCZJPXiABOnCLuqABO3j6byABC5KIWSABFATS1qABPU6/5uABMr3EQ2ABL7Q44aABCdNdwWABJJGXQiABPAfrM6ABFrIoKA2GgCOKvM581nzefOZ87n0FPRv9Mr1JfV39ZX1tfXy9if2XPaI9sX3rfhF+Kb5Avkj+Uv5cvmX+eL6Avoi+kL6nfr4+1P7bfu9++r8F/xE/Gb8nP1G/cL+KAA=", "clear": "Cg==" }, "compilerInfo": { diff --git a/tests/contracts/math.algo.ts b/tests/contracts/math.algo.ts index 0b911566b..6ab5c87f9 100644 --- a/tests/contracts/math.algo.ts +++ b/tests/contracts/math.algo.ts @@ -225,4 +225,8 @@ class MathTest extends Contract { uintFromHex(): uint256 { return Uint<256>('0xFF'); } + + wideRatioTest(): uint64 { + return wideRatio([Uint<64>('18446744073709551615'), 2, 3, 4, 5], [2, 3, 4, 5]); + } } diff --git a/tests/math.test.ts b/tests/math.test.ts index bab63f5b2..454051707 100644 --- a/tests/math.test.ts +++ b/tests/math.test.ts @@ -113,6 +113,11 @@ describe('Math', function () { method: 'unsafeVariables', }); }); + + test('wideRatioTest', async function () { + const { appClient } = await compileAndCreate(await sender, PATH, ARTIFACTS_DIR, NAME); + expect(await runMethod({ appClient, method: 'wideRatioTest' })).toBe(18446744073709551615n); + }); }); describe('Compile Errors', function () {