elif arguments[0] == "version":
message = repr(actor.universe.versions)
elif arguments[0] == "time":
- message = actor.universe.groups["internal"]["counters"].get(
- "elapsed"
- ) + " increments elapsed since the world was created."
+ message = "%s increments elapsed since the world was created." % (
+ str(actor.universe.groups["internal"]["counters"].get("elapsed")))
elif arguments[0] == "groups":
message = "These are the element groups:$(eol)"
groups = list(actor.universe.groups.keys())
(2, r"Running mudpy .* on .* Python 3.*with.*pyyaml.*> ", ""),
)
+test_show_time = (
+ (2, "> ", "show time"),
+ (2, r"\r\n[0-9]+ increments elapsed.*> ", ""),
+)
+
test_show_files = (
(2, "> ", "show files"),
(2, r'These are the current files containing the universe:.*'
(test_set_facet, "set facet"),
(test_set_refused, "refuse altering read-only element"),
(test_show_version, "show version and diagnostic info"),
+ (test_show_time, "show elapsed world clock increments"),
(test_show_files, "show a list of loaded files"),
(test_show_file, "show nodes from a specific file"),
(test_show_groups, "show groups"),