| 19 | * @param {t.TestCase} _tc |
| 20 | */ |
| 21 | export const testIdsetMerge = _tc => { |
| 22 | t.group('filter out empty items (1))', () => { |
| 23 | compareIdSets( |
| 24 | simpleConstructIdSet([[0, 1, 0]]), |
| 25 | simpleConstructIdSet([]) |
| 26 | ) |
| 27 | }) |
| 28 | t.group('filter out empty items (2))', () => { |
| 29 | compareIdSets( |
| 30 | simpleConstructIdSet([[0, 1, 0], [0, 2, 0]]), |
| 31 | simpleConstructIdSet([]) |
| 32 | ) |
| 33 | }) |
| 34 | t.group('filter out empty items (3 - end))', () => { |
| 35 | compareIdSets( |
| 36 | simpleConstructIdSet([[0, 1, 1], [0, 2, 0]]), |
| 37 | simpleConstructIdSet([[0, 1, 1]]) |
| 38 | ) |
| 39 | }) |
| 40 | t.group('filter out empty items (4 - middle))', () => { |
| 41 | compareIdSets( |
| 42 | simpleConstructIdSet([[0, 1, 1], [0, 2, 0], [0, 3, 1]]), |
| 43 | simpleConstructIdSet([[0, 1, 1], [0, 3, 1]]) |
| 44 | ) |
| 45 | }) |
| 46 | t.group('filter out empty items (5 - beginning))', () => { |
| 47 | compareIdSets( |
| 48 | simpleConstructIdSet([[0, 1, 0], [0, 2, 1], [0, 3, 1]]), |
| 49 | simpleConstructIdSet([[0, 2, 1], [0, 3, 1]]) |
| 50 | ) |
| 51 | }) |
| 52 | t.group('merge of overlapping id ranges', () => { |
| 53 | compareIdSets( |
| 54 | simpleConstructIdSet([[0, 1, 2], [0, 0, 2]]), |
| 55 | simpleConstructIdSet([[0, 0, 3]]) |
| 56 | ) |
| 57 | }) |
| 58 | t.group('construct without hole', () => { |
| 59 | compareIdSets( |
| 60 | simpleConstructIdSet([[0, 1, 2], [0, 3, 1]]), |
| 61 | simpleConstructIdSet([[0, 1, 3]]) |
| 62 | ) |
| 63 | }) |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * @param {t.TestCase} _tc |
nothing calls this directly
no test coverage detected
searching dependent graphs…