def test_ns_completion(self, ns: Namespace): assert {"basilisp.string/"} == set(ns.complete("basilisp.st")) assert {"basilisp.string/join" } == set(ns.complete("basilisp.string/j")) assert {"str/", "string?", "str"} == set(ns.complete("st")) assert {"map"} == set(ns.complete("m")) assert {"map"} == set(ns.complete("ma"))
def test_import_and_alias(self, ns: Namespace): assert {"time/"} == set(ns.complete("ti")) assert {"time/asctime"} == set(ns.complete("time/as")) assert {"py-time/"} == set(ns.complete("py-t")) assert {"py-time/asctime"} == set(ns.complete("py-time/as"))