Skip to content

Commit

Permalink
Add new test.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarlt committed May 13, 2020
1 parent 99b0ce1 commit 021444e
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
35 changes: 35 additions & 0 deletions test/libsolidity/ASTJSON/smoke_license.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
1
]
},
"id": 2,
"license": "GPL-3.0",
"nodeType": "SourceUnit",
"nodes":
[
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 1,
"linearizedBaseContracts":
[
1
],
"name": "C",
"nodeType": "ContractDefinition",
"nodes": [],
"scope": 2,
"src": "36:13:1"
}
],
"src": "36:14:1"
}
4 changes: 4 additions & 0 deletions test/libsolidity/ASTJSON/smoke_license.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
contract C {}

// ----
50 changes: 50 additions & 0 deletions test/libsolidity/ASTJSON/smoke_license_legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"attributes":
{
"absolutePath": "a",
"exportedSymbols":
{
"C":
[
1
]
},
"license": "GPL-3.0"
},
"children":
[
{
"attributes":
{
"abstract": false,
"baseContracts":
[
null
],
"contractDependencies":
[
null
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"linearizedBaseContracts":
[
1
],
"name": "C",
"nodes":
[
null
],
"scope": 2
},
"id": 1,
"name": "ContractDefinition",
"src": "36:13:1"
}
],
"id": 2,
"name": "SourceUnit",
"src": "36:14:1"
}

0 comments on commit 021444e

Please sign in to comment.