Skip to content

Commit

Permalink
Update existing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth committed May 4, 2021
1 parent c6f05e4 commit bbf9f7a
Show file tree
Hide file tree
Showing 21 changed files with 60 additions and 2 deletions.
18 changes: 18 additions & 0 deletions test/cmdlineTests/combined_json_generated_sources/output
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"src": "142:6:1"
},
{
"hexValue": "30783166",
"kind": "number",
"nodeType": "YulLiteral",
"src": "150:4:1",
Expand Down Expand Up @@ -171,6 +172,7 @@
"src": "300:6:1"
},
{
"hexValue": "307866666666666666666666666666666666",
"kind": "number",
"nodeType": "YulLiteral",
"src": "308:18:1",
Expand Down Expand Up @@ -203,6 +205,7 @@
"src": "436:6:1"
},
{
"hexValue": "30783230",
"kind": "number",
"nodeType": "YulLiteral",
"src": "444:4:1",
Expand Down Expand Up @@ -274,6 +277,7 @@
"src": "482:6:1"
},
{
"hexValue": "30783230",
"kind": "number",
"nodeType": "YulLiteral",
"src": "490:4:1",
Expand Down Expand Up @@ -414,6 +418,7 @@
"src": "716:23:1"
},
{
"hexValue": "3332",
"kind": "number",
"nodeType": "YulLiteral",
"src": "741:2:1",
Expand Down Expand Up @@ -454,6 +459,7 @@
"src": "884:9:1"
},
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "895:1:1",
Expand Down Expand Up @@ -525,6 +531,7 @@
"src": "917:6:1"
},
{
"hexValue": "307866666666666666666666666666666666",
"kind": "number",
"nodeType": "YulLiteral",
"src": "925:18:1",
Expand Down Expand Up @@ -656,6 +663,7 @@
"arguments":
[
{
"hexValue": "3634",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1229:2:1",
Expand Down Expand Up @@ -709,13 +717,15 @@
"arguments":
[
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1350:1:1",
"type": "",
"value": "0"
},
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1353:1:1",
Expand Down Expand Up @@ -754,13 +764,15 @@
"arguments":
[
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1473:1:1",
"type": "",
"value": "0"
},
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1476:1:1",
Expand Down Expand Up @@ -799,13 +811,15 @@
"arguments":
[
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1596:1:1",
"type": "",
"value": "0"
},
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1599:1:1",
Expand Down Expand Up @@ -844,13 +858,15 @@
"arguments":
[
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1719:1:1",
"type": "",
"value": "0"
},
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1722:1:1",
Expand Down Expand Up @@ -889,13 +905,15 @@
"arguments":
[
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1842:1:1",
"type": "",
"value": "0"
},
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "1845:1:1",
Expand Down
2 changes: 1 addition & 1 deletion test/cmdlineTests/standard_generatedSources/output.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions test/libsolidity/ASTJSON/assembly/call.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,48 +51,55 @@
"arguments":
[
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "67:1:1",
"type": "",
"value": "0"
},
{
"hexValue": "31",
"kind": "number",
"nodeType": "YulLiteral",
"src": "70:1:1",
"type": "",
"value": "1"
},
{
"hexValue": "32",
"kind": "number",
"nodeType": "YulLiteral",
"src": "73:1:1",
"type": "",
"value": "2"
},
{
"hexValue": "33",
"kind": "number",
"nodeType": "YulLiteral",
"src": "76:1:1",
"type": "",
"value": "3"
},
{
"hexValue": "34",
"kind": "number",
"nodeType": "YulLiteral",
"src": "79:1:1",
"type": "",
"value": "4"
},
{
"hexValue": "35",
"kind": "number",
"nodeType": "YulLiteral",
"src": "82:1:1",
"type": "",
"value": "5"
},
{
"hexValue": "36",
"kind": "number",
"nodeType": "YulLiteral",
"src": "85:1:1",
Expand Down
7 changes: 7 additions & 0 deletions test/libsolidity/ASTJSON/assembly/call_parseOnly.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,55 @@
"arguments":
[
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "67:1:1",
"type": "",
"value": "0"
},
{
"hexValue": "31",
"kind": "number",
"nodeType": "YulLiteral",
"src": "70:1:1",
"type": "",
"value": "1"
},
{
"hexValue": "32",
"kind": "number",
"nodeType": "YulLiteral",
"src": "73:1:1",
"type": "",
"value": "2"
},
{
"hexValue": "33",
"kind": "number",
"nodeType": "YulLiteral",
"src": "76:1:1",
"type": "",
"value": "3"
},
{
"hexValue": "34",
"kind": "number",
"nodeType": "YulLiteral",
"src": "79:1:1",
"type": "",
"value": "4"
},
{
"hexValue": "35",
"kind": "number",
"nodeType": "YulLiteral",
"src": "82:1:1",
"type": "",
"value": "5"
},
{
"hexValue": "36",
"kind": "number",
"nodeType": "YulLiteral",
"src": "85:1:1",
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/ASTJSON/assembly/function.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"arguments":
[
{
"hexValue": "3230",
"kind": "number",
"nodeType": "YulLiteral",
"src": "92:2:1",
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/ASTJSON/assembly/function_parseOnly.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"arguments":
[
{
"hexValue": "3230",
"kind": "number",
"nodeType": "YulLiteral",
"src": "92:2:1",
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/ASTJSON/assembly/loop.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
},
"condition":
{
"hexValue": "31",
"kind": "number",
"nodeType": "YulLiteral",
"src": "70:1:1",
Expand All @@ -83,6 +84,7 @@
"arguments":
[
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "84:1:1",
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/ASTJSON/assembly/loop_parseOnly.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
},
"condition":
{
"hexValue": "31",
"kind": "number",
"nodeType": "YulLiteral",
"src": "70:1:1",
Expand All @@ -71,6 +72,7 @@
"arguments":
[
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "84:1:1",
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/ASTJSON/assembly/nested_functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"src": "130:6:1",
"value":
{
"hexValue": "32",
"kind": "number",
"nodeType": "YulLiteral",
"src": "135:1:1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"src": "130:6:1",
"value":
{
"hexValue": "32",
"kind": "number",
"nodeType": "YulLiteral",
"src": "135:1:1",
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/ASTJSON/assembly/slot_offset.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
"src": "128:6:1"
},
{
"hexValue": "32",
"kind": "number",
"nodeType": "YulLiteral",
"src": "136:1:1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
"src": "128:6:1"
},
{
"hexValue": "32",
"kind": "number",
"nodeType": "YulLiteral",
"src": "136:1:1",
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/ASTJSON/assembly/stringlit.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"src": "58:14:1",
"value":
{
"hexValue": "616263",
"kind": "string",
"nodeType": "YulLiteral",
"src": "67:5:1",
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/ASTJSON/assembly/stringlit_parseOnly.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"src": "58:14:1",
"value":
{
"hexValue": "616263",
"kind": "string",
"nodeType": "YulLiteral",
"src": "67:5:1",
Expand Down
4 changes: 4 additions & 0 deletions test/libsolidity/ASTJSON/assembly/switch.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"src": "75:10:1",
"value":
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "84:1:1",
Expand Down Expand Up @@ -77,6 +78,7 @@
"src": "141:6:1",
"value":
{
"hexValue": "31",
"kind": "number",
"nodeType": "YulLiteral",
"src": "146:1:1",
Expand All @@ -98,6 +100,7 @@
"src": "132:17:1",
"value":
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "137:1:1",
Expand All @@ -117,6 +120,7 @@
"src": "172:6:1",
"value":
{
"hexValue": "32",
"kind": "number",
"nodeType": "YulLiteral",
"src": "177:1:1",
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/ASTJSON/assembly/switch_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"src": "72:9:1",
"value":
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "77:1:1",
Expand All @@ -77,6 +78,7 @@
],
"expression":
{
"hexValue": "30",
"kind": "number",
"nodeType": "YulLiteral",
"src": "70:1:1",
Expand Down
Loading

0 comments on commit bbf9f7a

Please sign in to comment.