@@ -40,17 +40,6 @@ const unstableAstTests = new Map(
4040 } ) ,
4141) ;
4242
43- const testsWithSlang = new Map (
44- [
45- // "Comments/Comments.sol", // TODO: finish Comments
46- ] . map ( ( fixture ) => {
47- const [ file , testSlang = ( ) => true ] = Array . isArray ( fixture )
48- ? fixture
49- : [ fixture ] ;
50- return [ path . join ( __dirname , "../format/" , file ) , testSlang ] ;
51- } ) ,
52- ) ;
53-
5443const testsWithAstChanges = new Map (
5544 [
5645 "Parentheses/AddNoParentheses.sol" ,
@@ -95,16 +84,6 @@ const isAstUnstable = (filename, options) => {
9584 return testFunction ( options ) ;
9685} ;
9786
98- const shouldTestSlang = ( filename , options ) => {
99- const testFunction = testsWithSlang . get ( filename ) ;
100-
101- if ( ! testFunction ) {
102- return false ;
103- }
104-
105- return testFunction ( options ) ;
106- } ;
107-
10887const shouldCompareBytecode = ( filename , options ) => {
10988 const testFunction = testsWithAstChanges . get ( filename ) ;
11089
@@ -309,22 +288,6 @@ async function runTest({
309288 } ) ,
310289 ) . toMatchSnapshot ( ) ;
311290
312- if ( shouldTestSlang ( filename , formatOptions ) ) {
313- const { input, output } = formatResult ;
314- const slangOptions = {
315- ...formatOptions ,
316- parser : "slang" ,
317- } ;
318- console . log ( filename ) ;
319- const prettier = await getPrettier ( ) ;
320- const slangOutput = await prettier . format ( input , slangOptions ) ;
321-
322- // const slangOutput2 = await prettier.format(output, slangOptions);
323-
324- expect ( slangOutput ) . toEqual ( output ) ;
325- // expect(slangOutput2).toEqual(output);
326- }
327-
328291 if ( ! FULL_TEST ) {
329292 return ;
330293 }
0 commit comments