|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`HexLiteral.sol - {"singleQuote":false} format 1`] = ` |
| 4 | +====================================options===================================== |
| 5 | +parsers: ["solidity-parse"] |
| 6 | +printWidth: 80 |
| 7 | +singleQuote: false |
| 8 | + | printWidth |
| 9 | +=====================================input====================================== |
| 10 | +// SPDX-License-Identifier: MIT |
| 11 | +pragma solidity 0.8.3; |
| 12 | +
|
| 13 | +contract HexLiteral { |
| 14 | + bytes8 hex1 = hex'DeadBeef'; |
| 15 | + bytes8 hex2 = hex"DeadBeef"; |
| 16 | +} |
| 17 | +
|
| 18 | +=====================================output===================================== |
| 19 | +// SPDX-License-Identifier: MIT |
| 20 | +pragma solidity 0.8.3; |
| 21 | +
|
| 22 | +contract HexLiteral { |
| 23 | + bytes8 hex1 = hex"DeadBeef"; |
| 24 | + bytes8 hex2 = hex"DeadBeef"; |
| 25 | +} |
| 26 | +
|
| 27 | +================================================================================ |
| 28 | +`; |
| 29 | + |
| 30 | +exports[`HexLiteral.sol - {"singleQuote":true} format 1`] = ` |
| 31 | +====================================options===================================== |
| 32 | +parsers: ["solidity-parse"] |
| 33 | +printWidth: 80 |
| 34 | +singleQuote: true |
| 35 | + | printWidth |
| 36 | +=====================================input====================================== |
| 37 | +// SPDX-License-Identifier: MIT |
| 38 | +pragma solidity 0.8.3; |
| 39 | +
|
| 40 | +contract HexLiteral { |
| 41 | + bytes8 hex1 = hex'DeadBeef'; |
| 42 | + bytes8 hex2 = hex"DeadBeef"; |
| 43 | +} |
| 44 | +
|
| 45 | +=====================================output===================================== |
| 46 | +// SPDX-License-Identifier: MIT |
| 47 | +pragma solidity 0.8.3; |
| 48 | +
|
| 49 | +contract HexLiteral { |
| 50 | + bytes8 hex1 = hex'DeadBeef'; |
| 51 | + bytes8 hex2 = hex'DeadBeef'; |
| 52 | +} |
| 53 | +
|
| 54 | +================================================================================ |
| 55 | +`; |
0 commit comments