Instead it's customary to use this idiom:
assert(nc.equal(["name", "var"])); 

This shows explicitly what nc range contains

Or at the very least comment on what is expected to be on stdout (and then add std.stdio import).