MCPcopy Create free account
hub / github.com/Persper/code-analytics / test_inverse_diff

Function test_inverse_diff

test/test_graphs/test_inverse_diff.py:5–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def test_inverse_diff():
6 # view parsing ground truth here
7 # https://github.com/basicthinker/Sexain-MemController/commit/f050c6f6dd4b1d3626574b0d23bb41125f7b75ca
8 adds_dels = (
9 [[7, 31], [27, 3], [44, 1], [50, 2], [70, 1], [77, 2], [99, 2]],
10 [[32, 44], [56, 70]]
11 )
12 inv_truth = (
13 [[65, 13], [79, 15]],
14 [[8, 38], [59, 61], [66, 66], [73, 74], [80, 80], [88, 89], [112, 113]]
15 )
16
17 inv_result = inverse_diff(*adds_dels)
18 assert(inv_truth == inv_result)

Callers

nothing calls this directly

Calls 1

inverse_diffFunction · 0.90

Tested by

no test coverage detected