Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightguth committed Sep 3, 2024
1 parent 4db147d commit 70818b1
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 4 deletions.
6 changes: 6 additions & 0 deletions test/regression/block.ref
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<contract-fn-return-names>
.List
</contract-fn-return-names>
<contract-fn-payable>
false
</contract-fn-payable>
<contract-fn-body>
bool x = false ; { bool x = true ; require ( x , "" , .TypedVals ) ; .Statements } if ( x ) { require ( false , "" , .TypedVals ) ; .Statements } .Statements
</contract-fn-body>
Expand All @@ -59,6 +62,9 @@
<tx-origin>
1p160
</tx-origin>
<block-timestamp>
0p256
</block-timestamp>
<this>
2p160
</this>
Expand Down
2 changes: 1 addition & 1 deletion test/regression/block.txn
Original file line number Diff line number Diff line change
@@ -1 +1 @@
create(1, 0, BlockTest, )
create(1, 0, 0, BlockTest, )
9 changes: 9 additions & 0 deletions test/regression/boolean.ref
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<contract-fn-return-names>
.List
</contract-fn-return-names>
<contract-fn-payable>
false
</contract-fn-payable>
<contract-fn-body>
bool x = true ; if ( x || fail ( .TypedVals ) ) { .Statements } else { require ( false , "" , .TypedVals ) ; .Statements } if ( x && true ) { .Statements } else { require ( false , "" , .TypedVals ) ; .Statements } x = false ; if ( x && fail ( .TypedVals ) ) { require ( false , "" , .TypedVals ) ; .Statements } if ( x || true ) { .Statements } else { require ( false , "" , .TypedVals ) ; .Statements } .Statements
</contract-fn-body>
Expand All @@ -61,6 +64,9 @@
<contract-fn-return-names>
.List
</contract-fn-return-names>
<contract-fn-payable>
false
</contract-fn-payable>
<contract-fn-body>
require ( false , "" , .TypedVals ) ; .Statements
</contract-fn-body>
Expand All @@ -81,6 +87,9 @@
<tx-origin>
1p160
</tx-origin>
<block-timestamp>
0p256
</block-timestamp>
<this>
2p160
</this>
Expand Down
2 changes: 1 addition & 1 deletion test/regression/boolean.txn
Original file line number Diff line number Diff line change
@@ -1 +1 @@
create(1, 0, BoolTest, )
create(1, 0, 0, BoolTest, )
6 changes: 6 additions & 0 deletions test/regression/emit.ref
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<contract-fn-return-names>
.List
</contract-fn-return-names>
<contract-fn-payable>
false
</contract-fn-payable>
<contract-fn-body>
emit Approval ( address ( 1 , .TypedVals ) , address ( 0 , .TypedVals ) , address ( 2 , .TypedVals ) , .TypedVals ) ; .Statements
</contract-fn-body>
Expand Down Expand Up @@ -77,6 +80,9 @@
<tx-origin>
1p160
</tx-origin>
<block-timestamp>
0p256
</block-timestamp>
<this>
2p160
</this>
Expand Down
2 changes: 1 addition & 1 deletion test/regression/emit.txn
Original file line number Diff line number Diff line change
@@ -1 +1 @@
create(1, 10, EmitTest, )
create(1, 10, 0, EmitTest, )
6 changes: 6 additions & 0 deletions test/regression/if.ref
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<contract-fn-return-names>
.List
</contract-fn-return-names>
<contract-fn-payable>
false
</contract-fn-payable>
<contract-fn-body>
bool x = true ; bool y = false ; if ( x ) { y = true ; .Statements } else { require ( false , "" , .TypedVals ) ; .Statements } require ( y , "" , .TypedVals ) ; y = false ; x = false ; if ( x ) { require ( false , "" , .TypedVals ) ; .Statements } else { y = true ; .Statements } require ( y , "" , .TypedVals ) ; if ( x ) { require ( false , "" , .TypedVals ) ; .Statements } .Statements
</contract-fn-body>
Expand All @@ -59,6 +62,9 @@
<tx-origin>
1p160
</tx-origin>
<block-timestamp>
0p256
</block-timestamp>
<this>
2p160
</this>
Expand Down
2 changes: 1 addition & 1 deletion test/regression/if.txn
Original file line number Diff line number Diff line change
@@ -1 +1 @@
create(1, 0, IfTest, )
create(1, 0, 0, IfTest, )

0 comments on commit 70818b1

Please sign in to comment.