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

Add tests for allowances #98

Open
HughParsonage opened this issue Jun 28, 2018 · 3 comments
Open

Add tests for allowances #98

HughParsonage opened this issue Jun 28, 2018 · 3 comments
Assignees
Milestone

Comments

@HughParsonage
Copy link
Owner

Next step is to add unit tests to the allowances branch.

In RStudio, under the Git tab click where it says todays-date and click allowances from the drop-down menu. This 'checks out' the allowances branch.

I've added some functions like youth_allowance. Please add tests for these. Use http://guides.dss.gov.au/guide-social-security-law/5 to work out what the unit test expectations should be.

A few functions are currently returning wrong results. Fix any you find, but the priority is to establish the tests. That is, it's better to record what the right answer should be first and then try to amend the functions than attempting to curate an error-free test suite.

@HughParsonage HughParsonage added this to the 1.7 milestone Jun 28, 2018
@MatthewKatzen
Copy link
Collaborator

Getting started on youth_allowance now. Is there any preference for if_else() over if(){...}else(){...}? I find the second way much easier to understand and edit.

@HughParsonage
Copy link
Owner Author

HughParsonage commented Jun 29, 2018 via email

@MatthewKatzen
Copy link
Collaborator

OK. I can see how that would be helpful if you wanted to pass multiple individuals through the function at once.

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

No branches or pull requests

2 participants