def test_str__no_template_args(self): target = cg.CallExpression(cg.RawExpression("my_function"), 1, "2", False) actual = str(target) assert actual == 'my_function(1, "2", false)'
def test_str__with_template_args(self): target = cg.CallExpression(cg.RawExpression("my_function"), cg.TemplateArguments(int, float), 1, "2", False) actual = str(target) assert actual == 'my_function<int32_t, float>(1, "2", false)'