Skip to content

Commit 014174d

Browse files
committed
Fixing test with conflicting pragmas and syntax
1 parent 857e73d commit 014174d

6 files changed

Lines changed: 3 additions & 22 deletions

File tree

tests/format/AllSolidityFeatures/AllSolidityFeatures.sol

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
// Examples taken from the Solidity documentation online.
2-
3-
// for pragma version numbers, see https://docs.npmjs.com/misc/semver#versions
4-
pragma solidity 0.4.0;
5-
pragma solidity ^0.4.0;
62
pragma experimental ABIEncoderV2;
73

84
import "SomeFile.sol";

tests/format/AllSolidityFeatures/__snapshots__/format.test.js.snap

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ printWidth: 80
77
| printWidth
88
=====================================input======================================
99
// Examples taken from the Solidity documentation online.
10-
11-
// for pragma version numbers, see https://docs.npmjs.com/misc/semver#versions
12-
pragma solidity 0.4.0;
13-
pragma solidity ^0.4.0;
1410
pragma experimental ABIEncoderV2;
1511
1612
import "SomeFile.sol";
@@ -370,10 +366,6 @@ using { add as + , sub } for Fixed18 global ;
370366
371367
=====================================output=====================================
372368
// Examples taken from the Solidity documentation online.
373-
374-
// for pragma version numbers, see https://docs.npmjs.com/misc/semver#versions
375-
pragma solidity 0.4.0;
376-
pragma solidity ^0.4.0;
377369
pragma experimental ABIEncoderV2;
378370
379371
import "SomeFile.sol";

tests/format/Comments/Comments.sol

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
pragma solidity ^0.4.29;
2-
3-
41
contract Comments1 {
52
/* solhint-disable var-name-mixedcase */
63
IEIP712DomainSeparator private EIP712domainSeparator;

tests/format/Comments/__snapshots__/format.test.js.snap

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ parsers: ["slang"]
66
printWidth: 80
77
| printWidth
88
=====================================input======================================
9-
pragma solidity ^0.4.29;
10-
11-
129
contract Comments1 {
1310
/* solhint-disable var-name-mixedcase */
1411
IEIP712DomainSeparator private EIP712domainSeparator;
@@ -178,8 +175,6 @@ contract Comments13 {
178175
}
179176
}
180177
=====================================output=====================================
181-
pragma solidity ^0.4.29;
182-
183178
contract Comments1 {
184179
/* solhint-disable var-name-mixedcase */
185180
IEIP712DomainSeparator private EIP712domainSeparator;

tests/format/Pragma/__snapshots__/format.test.js.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Pragma.sol format 1`] = `
3+
exports[`Pragma.sol - {"compiler":"0.8.0"} format 1`] = `
44
====================================options=====================================
5+
compiler: "0.8.0"
56
parsers: ["slang"]
67
printWidth: 80
78
| printWidth

tests/format/Pragma/format.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
runFormatTest(import.meta, ['slang']);
1+
runFormatTest(import.meta, ['slang'], { compiler: '0.8.0' });

0 commit comments

Comments
 (0)