Skip to content

Commit

Permalink
add more V1 tests that didn't have .exp files
Browse files Browse the repository at this point in the history
  • Loading branch information
brmataptos committed Sep 10, 2024
1 parent 6c35e46 commit ee3ab13
Show file tree
Hide file tree
Showing 225 changed files with 2,001 additions and 1,809 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Diagnostics:
error: no function named `assert` found
┌─ tests/more-v1/deprecated/assert_function.move:3:9
┌─ tests/deprecated/assert_function.move:3:9
3 │ assert(true, 42);
│ ^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#[deprecated]
address 0x42 {
module M {
use 0x41::N;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//# run
script {
fun main(): () {
for/**/( i in 0..10) {};
for/**/ ( i in 0..10) {};
for /**/( i in 0..10) {};
for /**/ ( i in 0..10) {};
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//# run
script {
fun main(): () {
for( i in 0..10) {};
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@

Diagnostics:
warning: Unnecessary trailing semicolon
┌─ tests/more-v1/control_flow/infinite_loop_with_dead_exits.move:13:30
13 │ if (return) break;
│ -----------------^
│ │ │
│ │ A trailing `;` in an expression block implicitly adds a `()` value expression after the semicolon, not needed here.
│ Any code after this expression will not be reached


============ bytecode verification succeeded ========

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit ee3ab13

Please sign in to comment.