In this case it might not have helped at all, because both solutions are correct - for a different task.
I didn't realise that numbers with hundrets of digits should also be possible.
But now tht you mention Unit Tests, I have a question: I'mt just starting with unit tests, didn't quite get the idea how to use them for large operations (My project creates the worksteps: drillings, cuts and routing operation to create a wooden object out of a 3d object). Most of the samples I found in various tutorials handle just very small and simple operations, I didn't find any source how to create automated tests for complex operations. Do you know where I can find something like that?
Big tests like that wouldn't be considered unit tests.
That's more of a functional or system test, which can also be automated, of course. There are testing frameworks for such things; you can probably find a lot of them by searching the web.
Flat View: This topic has 16 replies
on 2 pages
[
«
|
12
]