Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Devorein opened this issue Nov 14, 2021 · 0 comments
Open
Assignees
Labels
breaking A new feature or change that would break current api enhancement New feature or request

Comments

@Devorein
Copy link
Owner

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.

@Devorein Devorein added enhancement New feature or request breaking A new feature or change that would break current api labels Nov 14, 2021
@Devorein Devorein self-assigned this Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A new feature or change that would break current api enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant