fix warnings
Fix #76
Hi @garak. Could you please also include some tests for it?
I just added a test case (and cleaned up tests a bit). I realized it was my fault in the end, so the case is the same as the other issue I mentioned in mine. The current test is passing without warnings. If you run the same test on master, you'll get the warnings instead.
The problem, at this point, is that the calculator calculates an invalid cf when passing a shorter belfiore code. The problem is present in master branch too. Let met know if you prefer to merge this PR and wait for a different PR fixing this other problem, or if it's better to fix everything here
Thanks for your PR, @garak. Let's have this fix in another PR.