mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add more tests for the SPDX-License-Identifier
This commit is contained in:
parent
359c70649d
commit
5bbb017915
@ -5,6 +5,7 @@
|
||||
EXCLUDE_FILES=(
|
||||
"libsolutil/picosha2.h"
|
||||
"test/libsolutil/UTF8.cpp"
|
||||
"test/libsolidity/syntaxTests/license/license_whitespace_trailing.sol"
|
||||
)
|
||||
EXCLUDE_FILES_JOINED=$(printf "%s\|" "${EXCLUDE_FILES[@]}")
|
||||
EXCLUDE_FILES_JOINED=${EXCLUDE_FILES_JOINED%??}
|
||||
|
@ -0,0 +1,3 @@
|
||||
// This is parsed as GPL-3.0:
|
||||
// SPDX-License-Identifier: GPL-3.0 ⡉⡊⡋⡌⡍⡎⡏⡐⡑⡒
|
||||
contract C {}
|
2
test/libsolidity/syntaxTests/license/license_natspec.sol
Normal file
2
test/libsolidity/syntaxTests/license/license_natspec.sol
Normal file
@ -0,0 +1,2 @@
|
||||
/// SPDX-License-Identifier: GPL-3.0
|
||||
contract C {}
|
3
test/libsolidity/syntaxTests/license/license_unicode.sol
Normal file
3
test/libsolidity/syntaxTests/license/license_unicode.sol
Normal file
@ -0,0 +1,3 @@
|
||||
// This is just ignored:
|
||||
// SPDX-License-Identifier: ⡉⡊⡋⡌⡍⡎⡏⡐⡑⡒
|
||||
contract C {}
|
@ -0,0 +1,2 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
contract C {}
|
@ -0,0 +1,2 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
contract C {}
|
@ -0,0 +1,2 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
contract C {}
|
Loading…
Reference in New Issue
Block a user