| 67 | * @param {t.TestCase} _tc |
| 68 | */ |
| 69 | export const testDiffing = _tc => { |
| 70 | t.group('simple case (1))', () => { |
| 71 | compareIdSets( |
| 72 | d.diffIdSet( |
| 73 | simpleConstructIdSet([[0, 1, 1], [0, 3, 1]]), |
| 74 | simpleConstructIdSet([[0, 3, 1]]) |
| 75 | ), |
| 76 | simpleConstructIdSet([[0, 1, 1]]) |
| 77 | ) |
| 78 | }) |
| 79 | t.group('subset left', () => { |
| 80 | compareIdSets( |
| 81 | d.diffIdSet( |
| 82 | simpleConstructIdSet([[0, 1, 3]]), |
| 83 | simpleConstructIdSet([[0, 1, 1]]) |
| 84 | ), |
| 85 | simpleConstructIdSet([[0, 2, 2]]) |
| 86 | ) |
| 87 | }) |
| 88 | t.group('subset right', () => { |
| 89 | compareIdSets( |
| 90 | d.diffIdSet( |
| 91 | simpleConstructIdSet([[0, 1, 3]]), |
| 92 | simpleConstructIdSet([[0, 3, 1]]) |
| 93 | ), |
| 94 | simpleConstructIdSet([[0, 1, 2]]) |
| 95 | ) |
| 96 | }) |
| 97 | t.group('subset middle', () => { |
| 98 | compareIdSets( |
| 99 | d.diffIdSet( |
| 100 | simpleConstructIdSet([[0, 1, 3]]), |
| 101 | simpleConstructIdSet([[0, 2, 1]]) |
| 102 | ), |
| 103 | simpleConstructIdSet([[0, 1, 1], [0, 3, 1]]) |
| 104 | ) |
| 105 | }) |
| 106 | t.group('overlapping left', () => { |
| 107 | compareIdSets( |
| 108 | d.diffIdSet( |
| 109 | simpleConstructIdSet([[0, 1, 3]]), |
| 110 | simpleConstructIdSet([[0, 0, 2]]) |
| 111 | ), |
| 112 | simpleConstructIdSet([[0, 2, 2]]) |
| 113 | ) |
| 114 | }) |
| 115 | t.group('overlapping right', () => { |
| 116 | compareIdSets( |
| 117 | d.diffIdSet( |
| 118 | simpleConstructIdSet([[0, 1, 3]]), |
| 119 | simpleConstructIdSet([[0, 3, 5]]) |
| 120 | ), |
| 121 | simpleConstructIdSet([[0, 1, 2]]) |
| 122 | ) |
| 123 | }) |
| 124 | t.group('overlapping completely', () => { |
| 125 | compareIdSets( |
| 126 | d.diffIdSet( |
nothing calls this directly
no test coverage detected
searching dependent graphs…