def testExtractPitches(foundry): l = Line(1, '') p0 = l[0] p1 = ConstPitch(4) foundry.apply(Constraint(p0 == p1, ConstraintType.MISC, "bla")) assert foundry.extractPitches(l) == [p1.flattened()]
def testExtractPitch(foundry): p0 = VarPitch('x') p1 = ConstPitch(4) foundry.apply(Constraint(p0 == p1, ConstraintType.MISC, "bla")) foundry.check() assert foundry.extractPitch(p0) == p1.flattened()