zlacker

[parent] [thread] 1 comments
1. fanf2+(OP)[view] [source] 2024-06-06 08:55:13
Counting digits is very closely adjacent to the general category of parsing and printing (or serialization/deserialization), which are both tricky to get right and have simple correctness tests. They are perfect candidates for property-based testing.
replies(1): >>MrJohz+ML1
2. MrJohz+ML1[view] [source] 2024-06-06 20:21:18
>>fanf2+(OP)
But how do you do PBT here without having a known-correct algorithm available? Because that scenario is seldom the case in practice.
[go to top]