In Part 2 : Gift tax calculator exercise the boundaries of value ranges are ambigious. This part of the problem description "If the total value of the gifts you receive from the same donor in the course of 3 years is €5,000 or more, you must pay gift tax." implies that the first boundary is inclusive and the second is exclusive (since the second boundary is repeated as the frst one in the following ranges so that must be exclusive : ex: (50 - 100] ). But the solution of the exercise has used second boundary as the inclusive boundary rather than the first one (ex: [50 - 100)). The test code works fine in both cases but the clarity can be improved throug clear indication of the ranges ( either (50-100] or [50 - 100] ).
In Part 2 : Gift tax calculator exercise the boundaries of value ranges are ambigious. This part of the problem description "If the total value of the gifts you receive from the same donor in the course of 3 years is €5,000 or more, you must pay gift tax." implies that the first boundary is inclusive and the second is exclusive (since the second boundary is repeated as the frst one in the following ranges so that must be exclusive : ex: (50 - 100] ). But the solution of the exercise has used second boundary as the inclusive boundary rather than the first one (ex: [50 - 100)). The test code works fine in both cases but the clarity can be improved throug clear indication of the ranges ( either (50-100] or [50 - 100] ).