-
Notifications
You must be signed in to change notification settings - Fork 43
Add unit tests for api-tools/parser/parser.go #45 #62
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
Conversation
remove print
unused import
jpahm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty solid, just some small changes to request!
|
True, I didn't consider that some we actually need use some of the fields in the parser. I also added panics to getPrefixAndNumber and getInternalClassAndCourseNum since we depend on them to do map access. Test have been updated to expect panics on bad inputs. I clicked resolve for all the issues. Not sure if I'm supposed to do that but they said outdated so I assumed if there was a problem any of the changes you'd make a new one with the updated code. |
|
You did it properly, thank you! |
jpahm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now!
parser, sectionParser, courseParser
parser_test.go
go test -v ./parser -args -updateother_tests
I noticed there is an issue for writing go docs so I wrote some for the stuff I was working on. I had more problems with grade loading so once this is done I'm probably going to work on that.