Lines Matching full:subst
13 subst = {'g%.2g'%start: 'g%.2g'%end}
14 conds.append((region, subst))
24 subst = {str(i): str(n + 1 - i)}
25 conds.append((region, subst))
32 for subst in substitutions:
33 merged.update(subst)
53 subst = _match_condition({'abcd': 0}, overlaps)
54 assert subst == {2: 2}
55 subst = _match_condition({'abcd': 1}, overlaps)
56 assert subst == {2: 2}
57 subst = _match_condition({'abcd': 3}, overlaps)
58 assert subst == {2: 2, 3: 3}
59 subst = _match_condition({'abcd': 4}, overlaps)
60 assert subst == {0: 0, 2: 2, 3: 3}
61 subst = _match_condition({'abcd': 5}, overlaps)
62 assert subst == {0: 0, 1: 1, 2: 2, 3: 3}
63 subst = _match_condition({'abcd': 7}, overlaps)
64 assert subst == {0: 0, 1: 1, 2: 2, 3: 3}
65 subst = _match_condition({'abcd': 8}, overlaps)
66 assert subst == {0: 0, 1: 1, 2: 2}
67 subst = _match_condition({'abcd': 9}, overlaps)
68 assert subst == {0: 0, 1: 1}
69 subst = _match_condition({'abcd': 10}, overlaps)
70 assert subst == {1: 1}
81 subst = _match_condition({'abcd': 0}, overlaps)
82 assert subst == {}
83 subst = _match_condition({'abcd': 1}, overlaps)
84 assert subst == {0: 0, 3: 3}
85 subst = _match_condition({'abcd': 2}, overlaps)
86 assert subst == {0: 0, 3: 3}
87 subst = _match_condition({'abcd': 3}, overlaps)
88 assert subst == {0: 0, 2: 2, 3: 3}
89 subst = _match_condition({'abcd': 5}, overlaps)
90 assert subst == {0: 0, 3: 3}
91 subst = _match_condition({'abcd': 10}, overlaps)
92 assert subst == {1: 1, 3: 3}