fix a Resolver test

This commit is contained in:
Cameron Ross 2019-01-24 02:01:40 -04:00 committed by Basile-z
parent 780f406e92
commit aa9b4c8c2b

View file

@ -95,7 +95,7 @@ final class Resolver
}
}
/// Resolve scalars starting with 'A' to !_tag
unittest
@safe unittest
{
import std.file : write;
import std.regex : regex;
@ -109,11 +109,8 @@ final class Resolver
resolver.addImplicitResolver("!tag", regex("A.*"), "A");
loader.resolver = resolver;
//Note that we have no constructor from tag "!tag", so we can't
//actually load anything that resolves to this tag.
//See Constructor API documentation and tutorial for more information.
//auto node = loader.load();
auto node = loader.load();
assert(node.tag == "!tag");
}
package: