3 ms·
You write tests for things that actually matter ... like you know, testing functionality. You don't waste time writing tests that simply check if all the argum
by winter_blue 6y ago
You write tests for things that actually matter ... like you know, testing functionality.
You don't waste time writing tests that simply check if all the arguments received the right type. This is taken care of by the type checker.
Besides, the biggest benefit of types is readability.
- joelbluminator 6y agoI don't see tests as you describe in dynamic languages much. E.G this is how you would test Rails controllers https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/controllers/search_controller_spec.rb https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/cont... . I don't think its that different than java world.