Skip to content

Commit c5cd47f

Browse files
committed
removing the hardcoded printWith
1 parent b505e9c commit c5cd47f

64 files changed

Lines changed: 111 additions & 223 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/config/run-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ function getTestCase(fixture, parser) {
141141
const { text: code, options: formatOptions } = replacePlaceholders(
142142
originalText,
143143
{
144-
printWidth: 80,
145144
filepath,
146145
...context.options,
147146
parser,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
exports[`AddressPayable.sol format 1`] = `
44
====================================options=====================================
55
parsers: ["slang"]
6-
printWidth: 80
7-
printWidth: 80 |
6+
printWidth: 80 (default) |
87
=====================================input======================================
98
pragma solidity ^0.5.2;
109

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
exports[`AllSolidityFeatures.sol format 1`] = `
44
====================================options=====================================
55
parsers: ["slang"]
6-
printWidth: 80
7-
printWidth: 80 |
6+
printWidth: 80 (default) |
87
=====================================input======================================
98
// Examples taken from the Solidity documentation online.
109
pragma experimental ABIEncoderV2;

tests/format/AllSolidityFeaturesV0.4.26/__snapshots__/format.test.js.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ exports[`AllSolidityFeatures.sol - {"compiler":"0.4.26"} format 1`] = `
44
====================================options=====================================
55
compiler: "0.4.26"
66
parsers: ["slang"]
7-
printWidth: 80
8-
printWidth: 80 |
7+
printWidth: 80 (default) |
98
=====================================input======================================
109
contract c {
1110
function c()

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
exports[`Arrays.sol format 1`] = `
44
====================================options=====================================
55
parsers: ["slang"]
6-
printWidth: 80
7-
printWidth: 80 |
6+
printWidth: 80 (default) |
87
=====================================input======================================
98
pragma solidity ^0.5.2;
109

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
exports[`Assembly.sol format 1`] = `
44
====================================options=====================================
55
parsers: ["slang"]
6-
printWidth: 80
7-
printWidth: 80 |
6+
printWidth: 80 (default) |
87
=====================================input======================================
98
contract Assembly {
109
function ifAssembly() {

tests/format/AssemblyV0.4.26/__snapshots__/format.test.js.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
exports[`Assembly.sol format 1`] = `
44
====================================options=====================================
55
parsers: ["slang"]
6-
printWidth: 80
7-
printWidth: 80 |
6+
printWidth: 80 (default) |
87
=====================================input======================================
98
pragma solidity ^0.4.26;
109

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
exports[`Assignments.sol format 1`] = `
44
====================================options=====================================
55
parsers: ["slang"]
6-
printWidth: 80
7-
printWidth: 80 |
6+
printWidth: 80 (default) |
87
=====================================input======================================
98
contract Assignments {
109
address payable public inParentheses = (contractPointer.functionCall(data.data1,data.data2,IERC20(data.token).decimals(),currency));

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ exports[`BasicIterator.sol - {"compiler":"0.4.26"} format 1`] = `
44
====================================options=====================================
55
compiler: "0.4.26"
66
parsers: ["slang"]
7-
printWidth: 80
8-
printWidth: 80 |
7+
printWidth: 80 (default) |
98
=====================================input======================================
109
/*
1110
This is a very simple demonstration of a while loops. Same as JS/c.

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
exports[`Group.sol format 1`] = `
44
====================================options=====================================
55
parsers: ["slang"]
6-
printWidth: 80
7-
printWidth: 80 |
6+
printWidth: 80 (default) |
87
=====================================input======================================
98
// SPDX-License-Identifier: MIT
109
pragma solidity "0.8.28";
@@ -1300,8 +1299,7 @@ contract Group {
13001299
exports[`Indent.sol format 1`] = `
13011300
====================================options=====================================
13021301
parsers: ["slang"]
1303-
printWidth: 80
1304-
printWidth: 80 |
1302+
printWidth: 80 (default) |
13051303
=====================================input======================================
13061304
// SPDX-License-Identifier: MIT
13071305
pragma solidity 0.8.28;

0 commit comments

Comments
 (0)