|
11 | 11 | import com.github.protocolfuzzing.protocolstatefuzzer.statefuzzer.testrunner.core.config.TestRunnerEnabler; |
12 | 12 | import com.github.protocolfuzzing.protocolstatefuzzer.utils.CleanupTasks; |
13 | 13 | import de.learnlib.ralib.sul.SULOracle; |
| 14 | +import de.learnlib.ralib.words.InputSymbol; |
14 | 15 | import de.learnlib.ralib.words.OutputSymbol; |
15 | 16 | import de.learnlib.ralib.words.PSymbolInstance; |
16 | 17 | import de.learnlib.ralib.words.ParameterizedSymbol; |
17 | 18 | import de.learnlib.sul.SUL; |
18 | 19 | import net.automatalib.alphabet.Alphabet; |
| 20 | +import net.automatalib.alphabet.impl.ListAlphabet; |
19 | 21 | import net.automatalib.exception.FormatException; |
20 | 22 | import net.automatalib.word.Word; |
21 | 23 | import net.automatalib.word.WordBuilder; |
@@ -185,16 +187,19 @@ protected List<TestRunnerResult<Word<PSymbolInstance>, Word<PSymbolInstance>>> r |
185 | 187 | .getTestRunnerConfig() |
186 | 188 | .getTest(); |
187 | 189 |
|
| 190 | + ListAlphabet<I> inputAlphabet = new ListAlphabet<> (alphabet.stream() |
| 191 | + .filter(i -> inputTransformer.toTransformedInput(i) instanceof InputSymbol).toList()); |
| 192 | + |
188 | 193 | if (new File(testFileOrTestString).exists()) { |
189 | | - tests = testParser.readTests(alphabet, testFileOrTestString); |
| 194 | + tests = testParser.readTests(inputAlphabet, testFileOrTestString); |
190 | 195 | } else { |
191 | 196 | LOGGER.info( |
192 | 197 | "File {} does not exist, interpreting argument as test", |
193 | 198 | testFileOrTestString |
194 | 199 | ); |
195 | 200 | String[] testStrings = testFileOrTestString.split("\\s+"); |
196 | 201 | tests = List.of( |
197 | | - testParser.readTest(alphabet, Arrays.asList(testStrings)) |
| 202 | + testParser.readTest(inputAlphabet, Arrays.asList(testStrings)) |
198 | 203 | ); |
199 | 204 | } |
200 | 205 |
|
|
0 commit comments