@@ -75,6 +75,8 @@ def write ( f , left, right , name , t , ispow = False , isn = False , isi = Fal
75
75
f .write ("import test from 'ava' ;\n " )
76
76
f .write ("import {{ parse , stringify , {} }} from '../../../../src' ;\n \n " .format (name ))
77
77
78
+ f .write ("const fmt = x => x.length <= 40 ? x : x.slice(0,19) + '..' + x.slice(-19);\n \n " )
79
+
78
80
if outputsize == 2 :
79
81
80
82
if isn :
@@ -124,20 +126,20 @@ def write ( f , left, right , name , t , ispow = False , isn = False , isi = Fal
124
126
125
127
if outputsize == 2 :
126
128
127
- f .write ("macro.title = ( _ , A , B , C , D ) => `{}(${{A}},${{B}}) = [${{C}},${{D}}]` ;\n \n " .format (name ))
128
-
129
129
if isn :
130
+ f .write ("macro.title = ( _ , A , B , C , D ) => `{}(${{fmt(A)}},${{B}}) = [${{fmt(C)}},${{fmt(D)}}]` ;\n \n " .format (name ))
130
131
LINE = "test( macro , '{}' , {} , '{}' , '{}' ) ;\n "
131
132
else :
133
+ f .write ("macro.title = ( _ , A , B , C , D ) => `{}(${{fmt(A)}},${{fmt(B)}}) = [${{fmt(C)}},${{fmt(D)}}]` ;\n \n " .format (name ))
132
134
LINE = "test( macro , '{}' , '{}' , '{}' , '{}' ) ;\n "
133
135
134
136
else :
135
137
136
- f .write ("macro.title = ( _ , A , B , C ) => `{}(${{A}},${{B}}) = ${{C}}` ;\n \n " .format (name ))
137
-
138
138
if isn :
139
+ f .write ("macro.title = ( _ , A , B , C ) => `{}(${{fmt(A)}},${{B}}) = ${{fmt(C)}}` ;\n \n " .format (name ))
139
140
LINE = "test( macro , '{}' , {} , '{}' ) ;\n "
140
141
else :
142
+ f .write ("macro.title = ( _ , A , B , C ) => `{}(${{fmt(A)}},${{fmt(B)}}) = ${{fmt(C)}}` ;\n \n " .format (name ))
141
143
LINE = "test( macro , '{}' , '{}' , '{}' ) ;\n "
142
144
143
145
for a in left :
0 commit comments