Skip to content
Snippets Groups Projects
  1. Mar 08, 2021
  2. Jan 31, 2021
    • Tomáš Pecka's avatar
      algo: Add integration aql test for FA iteration algorithms · 6ff8fe45
      Tomáš Pecka authored
      This test generates a random automaton, runs both iteration algorithms on
      it and then tests that both these automata accept equal language.
      
      This is first of the aql integration tests (which support was added in
      commit d79fe028). This should serve as
      an example how to write aql integration tests.
      Also, this is something that should not be in the unit tests (and it
      was removed in the previous commits).
      6ff8fe45
    • Tomáš Pecka's avatar
      algo: Fix AutomatonIteration wrong output · d7d2f1a3
      Tomáš Pecka authored
      Algorithm automaton::transform::AutomatonIteration resulted in wrong
      output when the input automaton had a transition from the initial state to a
      final state.
      If such transitions exists, we must also add a transition from the new
      initial state to the old initial state in the new automata.
      
      Added a test case for this particular case.
      
      Closes #211
      d7d2f1a3
    • Tomáš Pecka's avatar
      algo: Split and clarify tests for FA iteration algorithms · 247dc3ec
      Tomáš Pecka authored
      The tests for iteration were "messy". It was not clear what are they
      doing and also we tested two algorithms in one test case.
      
      Split those algorithms and make them clear -- test only for expected
      output.
      247dc3ec
    • Tomáš Pecka's avatar
      algo: AutomatonIteration - simplify templated code · e9a73764
      Tomáš Pecka authored
      There were two instances of the AutomatonIteration::iteration method,
      one for working with DFAs, one for NFAs. However, both shared the same
      code.
      Let's merge those methods.
      e9a73764
    • Tomáš Pecka's avatar
      algo: AutomatonIteration fix docs · 7134f136
      Tomáš Pecka authored
      7134f136
  3. Jan 30, 2021
Loading