Tests refactoring - use generated test cases to make sure all posibilities are tested.
Do not generate resource for all combinations, use PPCSetUpBeforeTearDownAfterResource
instead that delegates parser compilation to the testcase itself (it calls it's #setUpBefore
method).
"{ Package: 'stx:goodies/petitparser' }"
PPParser subclass:#PPStartOfLine
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'PetitParser-Parsers'
!
!PPStartOfLine methodsFor:'parsing'!
parseOn: aPPContext
(aPPContext isStartOfLine) ifTrue: [
^ #startOfLine
].
^ PPFailure message: 'Start of line expected' context: aPPContext at: aPPContext position
! !