billroper: (Default)
[personal profile] billroper
So I've been trying to sort out a problem with one of my calculations and failing. The problem is that the calculation exists in both our C++ and Java code, but there's no UI to vary the inputs on the Java side, so it's really much more convenient to test this on the C++ side. Of course, we have no unit test framework for C++...

I ported all of the utility routines over to the Java side and wrote unit tests for them. Whenever I saw an error in the results on the C++ side, I'd go add another case or three to the Java tests, figure out what was going wrong, patch the Java code, patch the C++ code, and go run another case on the C++ side.

After a couple of cycles of this, everything worked.

*whee*

Date: 2020-08-01 03:59 pm (UTC)
filkerdave: Made by LJ user fasterpussycat (Default)
From: [personal profile] filkerdave
The more I read these things, the happier I am that I've been moving further and further away from development.

Profile

billroper: (Default)
billroper

January 2026

S M T W T F S
     1 2 3
4 5 6 7 8910
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 262728293031

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 27th, 2026 07:12 am
Powered by Dreamwidth Studios