Even more license tests

This commit is contained in:
Kamil Śliwak
2021-01-18 16:17:06 +01:00
parent 0a3084abc0
commit f0cb181545
17 changed files with 167 additions and 0 deletions
@@ -0,0 +1,5 @@
// This test is actually useless, as the test suite adds the automatic preamble.
// 0.3-LPG :reifitnedI-esneciL-XDPS
// NOTE: The text above is reversed using Unicode directional marks. In raw form it would look like this:
// <LRO>0.3-LPG :reifitnedI-esneciL-XDPS<PDF>
contract C {}
@@ -0,0 +1,3 @@
// This test is actually useless, as the test suite adds the automatic preamble.
contract C {}
// SPDX-License-Identifier: GPL-3.0
@@ -0,0 +1 @@
// This test is actually useless, as the test suite adds the automatic preamble.// SPDX-License-Identifier: GPL-3.0contract C {}
@@ -0,0 +1,3 @@
// This test is actually useless, as the test suite adds the automatic preamble.
// SPDX-License-Identifier: GPL-3.0
contract C {}
@@ -0,0 +1,5 @@
contract C {
// SPDX-License-Identifier: GPL-3.0
}
// ----
// Warning 1878: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
@@ -0,0 +1,5 @@
import "// SPDX-License-Identifier: GPL-3.0";
contract C {}
// ----
// Warning 1878: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
// ParserError 6275: (0-45): Source "// SPDX-License-Identifier: GPL-3.0" not found: File not supplied initially.
@@ -0,0 +1,5 @@
contract C {
bytes license = "// SPDX-License-Identifier: GPL-3.0";
}
// ----
// Warning 1878: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
@@ -0,0 +1,3 @@
// This test is actually useless, as the test suite adds the automatic preamble.
// SPDX-License-Identifier GPL-3.0
contract C {}
@@ -0,0 +1,3 @@
// This test is actually useless, as the test suite adds the automatic preamble.
/* SPDX-License-Identifier: GPL-3.0 */
contract C {}
@@ -1,2 +1,3 @@
// This test is actually useless, as the test suite adds the automatic preamble.
/// SPDX-License-Identifier: GPL-3.0
contract C {}
@@ -0,0 +1,3 @@
// This test is actually useless, as the test suite adds the automatic preamble.
/** SPDX-License-Identifier: GPL-3.0 */
contract C {}
@@ -0,0 +1,3 @@
// This test is actually useless, as the test suite adds the automatic preamble.
//SPDX-License-Identifier:GPL-3.0
contract C {}
@@ -0,0 +1,3 @@
// This test is actually useless, as the test suite adds the automatic preamble.
/*SPDX-License-Identifier:GPL-3.0*/
contract C {}
@@ -0,0 +1,3 @@
// This test is actually useless, as the test suite adds the automatic preamble.
pragma solidity >= 0.0; // SPDX-License-Identifier: GPL-3.0
contract C {}
@@ -1,2 +1,3 @@
// SPDX-License-Identifier: GPL-3.0
// NOTE: Trailing space at the end of the line above is intentional.
contract C {}