Skip to content

Test two automaton for equivalence rather than using only a function #13

Description

@Devorein

There should be an option to test two separate finite automatons rather than only using a function. For example

// Not passing constructor arguments for sake of brevity
const dfa1 = new DeterministicFiniteAutomaton();
const dfa2 = new DeterministicFiniteAutomaton();

const finiteAutomataTest = new FiniteAutomataTest();
finiteAutomataTest.test([
	{
		automatons: [dfa1, dfa2]
		options: {
			type: "generate",
			// ...
		}
	}
])

This would test the two automatons together, rather than using their logic test functions.
This would also somewhat solve the issue for batching and caching input strings as we can now test multiple automatons using similar inputs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

breakingA new feature or change that would break current apienhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions