diff --git a/third_party/move/move-compiler-v2/transactional-tests/tests/constants/default_int_size.exp b/third_party/move/move-compiler-v2/transactional-tests/tests/constants/default_int_size.exp index 408108f3c4bd9..04bddebf5bbf0 100644 --- a/third_party/move/move-compiler-v2/transactional-tests/tests/constants/default_int_size.exp +++ b/third_party/move/move-compiler-v2/transactional-tests/tests/constants/default_int_size.exp @@ -1,6 +1,6 @@ processed 4 tasks -task 0 'run'. lines 1-14: +task 3 'run'. lines 40-53: Error: Script execution failed with VMError: { major_status: ARITHMETIC_ERROR, sub_status: None, diff --git a/third_party/move/move-compiler-v2/transactional-tests/tests/constants/default_int_size.move b/third_party/move/move-compiler-v2/transactional-tests/tests/constants/default_int_size.move index 06a35f423e79b..aaeebb9d7a06c 100644 --- a/third_party/move/move-compiler-v2/transactional-tests/tests/constants/default_int_size.move +++ b/third_party/move/move-compiler-v2/transactional-tests/tests/constants/default_int_size.move @@ -1,12 +1,10 @@ //# run script { - // should fail // Checks that default integers will always be u64 otherwise existing impls might fail - // We're going above u64 max fun main() { let i = 1; let j = 1; - while (j < 65) { + while (j < 64) { i = 2 * i; j = j + 1; }; @@ -17,9 +15,9 @@ script { script { // Checks that default integers will always be u64 otherwise existing impls might fail fun main() { - let i = 1; + let i = 256; let j = 1; - while (j < 64) { + while (j < (64 - 8)) { i = 2 * i; j = j + 1; }; @@ -30,9 +28,9 @@ script { script { // Checks that default integers will always be u64 otherwise existing impls might fail fun main() { - let i = 256; + let i = 65536; let j = 1; - while (j < (64 - 8)) { + while (j < (64 - 16)) { i = 2 * i; j = j + 1; }; @@ -41,11 +39,13 @@ script { //# run script { + // should fail // Checks that default integers will always be u64 otherwise existing impls might fail + // We're going above u64 max fun main() { - let i = 65536; + let i = 1; let j = 1; - while (j < (64 - 16)) { + while (j < 65) { i = 2 * i; j = j + 1; }; diff --git a/third_party/move/move-compiler/transactional-tests/tests/constants/default_int_size.exp b/third_party/move/move-compiler/transactional-tests/tests/constants/default_int_size.exp index f554efbb541ec..b9d71c757383f 100644 --- a/third_party/move/move-compiler/transactional-tests/tests/constants/default_int_size.exp +++ b/third_party/move/move-compiler/transactional-tests/tests/constants/default_int_size.exp @@ -1,6 +1,6 @@ processed 4 tasks -task 0 'run'. lines 1-14: +task 3 'run'. lines 40-53: Error: Script execution failed with VMError: { major_status: ARITHMETIC_ERROR, sub_status: None, diff --git a/third_party/move/move-compiler/transactional-tests/tests/constants/default_int_size.move b/third_party/move/move-compiler/transactional-tests/tests/constants/default_int_size.move index 06a35f423e79b..aaeebb9d7a06c 100644 --- a/third_party/move/move-compiler/transactional-tests/tests/constants/default_int_size.move +++ b/third_party/move/move-compiler/transactional-tests/tests/constants/default_int_size.move @@ -1,12 +1,10 @@ //# run script { - // should fail // Checks that default integers will always be u64 otherwise existing impls might fail - // We're going above u64 max fun main() { let i = 1; let j = 1; - while (j < 65) { + while (j < 64) { i = 2 * i; j = j + 1; }; @@ -17,9 +15,9 @@ script { script { // Checks that default integers will always be u64 otherwise existing impls might fail fun main() { - let i = 1; + let i = 256; let j = 1; - while (j < 64) { + while (j < (64 - 8)) { i = 2 * i; j = j + 1; }; @@ -30,9 +28,9 @@ script { script { // Checks that default integers will always be u64 otherwise existing impls might fail fun main() { - let i = 256; + let i = 65536; let j = 1; - while (j < (64 - 8)) { + while (j < (64 - 16)) { i = 2 * i; j = j + 1; }; @@ -41,11 +39,13 @@ script { //# run script { + // should fail // Checks that default integers will always be u64 otherwise existing impls might fail + // We're going above u64 max fun main() { - let i = 65536; + let i = 1; let j = 1; - while (j < (64 - 16)) { + while (j < 65) { i = 2 * i; j = j + 1; };