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

Anycc 55 add tests to the 2 phases #47

Merged
merged 45 commits into from
Feb 1, 2024
Merged

Conversation

Bazina
Copy link
Contributor

@Bazina Bazina commented Feb 1, 2024

Unit and Integration Tests

Proposed Changes

  • Add Unit Tests for public methods if it is not a simple getter/setter and not complex.
  • Add Integration Tests for public methods when needed.
  • Create a library for the project using CMake.
  • Add CMakeLists.txt to the project.
  • Modify some functions to fix small bugs.

Notes

  • The project is not fully tested, but I tried to test as much as I can.
  • Analyzer sometimes shifts the column number, but it is not a big problem and doesn't show up in important places.

The number of changes is huge because of generated output files (e.g. nfa.dot, nfa.csv..) which are not code. Only 2000+ changes are the real code add or changed

Modify Cmakes to add GoogleTests
Extract SubstringInfo so it is not repetitive
Modify Cmakes to add GoogleTests
Extract SubstringInfo so it is not repetitive
Upload Lex results
Add rules tests for the tests
Modify Position constructor
Add tests for the InputReader
Add tests for the NFAGenerator
Add tests for the NFAState
Add tests for the Utilities
Remove unused functions
Add NFA Tests and Transition Diagram Tests
Add Deterministic Transition Diagram Creator Tests
Fixing comments
Add end state flag for nfa state
Set end state flag for new end state
check for empty states and don't push a set for dead states if there is no dead states
Move Lex tests to folder Lex
Add Tests for Analyzer and Lex
Modify print
Add getter for table
Add getter for table
Add getter for table
Add cfg test files
Modify program test files name
Modify all tests to be fixtured and use the same name convention
Add CFG Reader tests
Add more CFG Grammars
Add FirstAndFollowGeneratorTest
Add FirstAndFollowGeneratorTests
Add ConvertToLL1Tests
Add ConvertToLL1Tests
Add PredictiveTableTests
Modify destructor
Adding test files
Modify destructor
Add anycc test
Add anycc test
@Bazina Bazina self-assigned this Feb 1, 2024
Add tests to readme
Add graph files
Remove graph files
Modify Readme
Add graph output files
Modify Readme
@Bazina Bazina merged commit 09d0fc3 into main Feb 1, 2024
2 checks passed
@Bazina Bazina deleted the ANYCC-55-Add-Tests-to-The-2-Phases branch February 1, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants