File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -267,8 +267,12 @@ class TestCase extends TTestCase {
267
267
* Returns the definition of a `newWith` method needed to set up the input or a `get` method needed to set up the output for this test.
268
268
*/
269
269
SupportMethod getASupportMethod ( ) {
270
- result = SupportMethod:: genMethodFor ( this .getInputType ( ) , input ) or
271
- result = SupportMethod:: genMethodForContent ( input .tail ( ) .drop ( _) ) or
270
+ exists ( SummaryComponentStack s | s = input .drop ( _) and s .tail ( ) != baseInput |
271
+ result = SupportMethod:: genMethodForContent ( s )
272
+ ) or
273
+ exists ( SummaryComponentStack s | s = input .drop ( _) and s .tail ( ) = baseInput |
274
+ result = SupportMethod:: genMethodFor ( this .getInputType ( ) , s )
275
+ ) or
272
276
result = SupportMethod:: getMethodFor ( this .getOutputType ( ) , output ) or
273
277
result = SupportMethod:: getMethodForContent ( output .tail ( ) .drop ( _) )
274
278
}
You can’t perform that action at this time.
0 commit comments