def test_name_argument(W): u = Function(W) v = Function(W, name="v") assert u.name() == "f_%d" % u.count() assert v.name() == "v" assert str(v) == "v"
def test_name_argument(W): u = Function(W) v = Function(W, name="v") assert u.name == "f_{}".format(u.count()) assert v.name == "v" assert str(v) == "v"