EmilHvitfeldt / blog

hvitfeldt's blog
https://www.hvitfeldt.me
0 stars 2 forks source link

blog/refactoring-tests/ #7

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Refactoring Tests

My R adventures.

https://www.hvitfeldt.me/blog/refactoring-tests/

eliocamp commented 4 years ago

It's a great way to write tests! You can overcharge it with something like

functions <- list(function1, function2, function3)
lapply(functions, test_wrong_input)
EmilHvitfeldt commented 4 years ago

@eliocamp that is a very good point!