Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Expression: -68--87+-15+22*-72*-42+12+90;
=227956
227956
Expected: equal to 66634 (+/- 1e-06)
Actual: 227956
Seems to be something wrong on my side.
I passed all default tests and always get red in once random test witch is:
Expected: equal to -117.98 (+/- 1e-06)
Actual: 21.1695
and always get different expected value in test. Does it precission of floating point problem ? In my code I use double for storing numbers.
There is probably error in test cases in cpp version in the last example.
This comment is hidden because it contains spoiler information about the solution
Can you check the fixed and edge assertion especially that below. (in C++ example). I supposed there is an error. Or can you rewrite test as test in main function.
should_pass_all_fixed_and_edge_assertions
Expected: equal to {pos = {2}, peaks = {3}}
Actual: {pos = {2, 4}, peaks = {3, 2}}