| 59 | } |
| 60 | |
| 61 | std::pair<JsonStore, JsonStore> doMoveTest(Track &t, int start, int count, int before) { |
| 62 | auto sit = std::next(t.item().begin(), start); |
| 63 | auto eit = std::next(sit, count); |
| 64 | auto dit = std::next(t.item().begin(), before); |
| 65 | |
| 66 | auto changes = t.item().splice(dit, t.item().children(), sit, eit); |
| 67 | auto more = t.item().refresh(); |
| 68 | |
| 69 | return std::make_pair(more, changes); |
| 70 | } |
| 71 | |
| 72 | #define TESTMOVE(...) \ |
| 73 | t.item().undo(more); \ |