Add unit tests for api-tools/parser/gradeLoader and api-tools/parser/profileLoader #44 #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pr is large but most of it isn't code just test data
Grade Loader
Tests
Profile Loader
Test
Side effects
When I wrote the other tests gradeLoading was not working (due to above bug) so I needed to update tests to support it. Once the tests were fixed I realized that none of the test cases were for sections that actually had data so I added a new test and regenerated the testdata. This caused validator_test to break since the indexMap got messed due to the tests moving around. I ended up changing alot of validator_test to match the other tests and moved the loading data the TestMain.
I changed a lot and a good bit was based on personal preference so let me know if it needs any changes. It probably does but I am unable to find anything on my own.