bartneck / swiML

A project to formalise swimming programs using XML
MIT License
2 stars 2 forks source link

simplify does not work with nested repetition #121

Closed bartneck closed 1 month ago

bartneck commented 1 month ago

In the file JasiMasters2024041401-edit02.xml there is a simplified repetition. Both nested instructions are 100 meters. So simplify should work. It has to be 2 x 100 as [ The first embedded instruction then needs to be 4x25. The second could be shown simply as 1.

SCR-20240716-lvnw
calloc262 commented 1 month ago

This is the same confusion as earlier, 4x25 is not swum as 100 meters. Simplify only works when all child instructions are the exact same continuously swum distance. This problem is if there is still no failed assertion when the XML is validated

bartneck commented 1 month ago

Thank you for this clarification. I added this to the documentation and I will add this issue as a feature request.