| 110 | * @param {t.TestCase} tc |
| 111 | */ |
| 112 | export const testRepeatRandomDiffing = tc => { |
| 113 | const clients = 4 |
| 114 | const clockRange = 100 |
| 115 | const attrs = [1, 2, 3] |
| 116 | const idset1 = createRandomIdMap(tc.prng, clients, clockRange, attrs) |
| 117 | const idset2 = createRandomIdMap(tc.prng, clients, clockRange, attrs) |
| 118 | const merged = idmap.mergeIdMaps([idset1, idset2]) |
| 119 | const e1 = idmap.diffIdMap(idset1, idset2) |
| 120 | const e2 = idmap.diffIdMap(merged, idset2) |
| 121 | compareIdMaps(e1, e2) |
| 122 | const copy = YY.decodeIdMap(YY.encodeIdMap(e1)) |
| 123 | compareIdMaps(e1, copy) |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * @param {t.TestCase} tc |
nothing calls this directly
no test coverage detected
searching dependent graphs…