def test_varmap(self): a = ir.VarMap() a.define(self.var_a, 'foo') a.define(self.var_b, 'bar') b = ir.VarMap() b.define(self.var_a, 'foo') b.define(self.var_b, 'bar') c = ir.VarMap() c.define(self.var_a, 'foo') c.define(self.var_c, 'bar') self.check(a, same=[b], different=[c])
def test_varmap(self): a = ir.VarMap() a.define(self.var_a, "foo") a.define(self.var_b, "bar") b = ir.VarMap() b.define(self.var_a, "foo") b.define(self.var_b, "bar") c = ir.VarMap() c.define(self.var_a, "foo") c.define(self.var_c, "bar") self.check(a, same=[b], different=[c])