fix a Resolver test
This commit is contained in:
parent
780f406e92
commit
aa9b4c8c2b
|
@ -95,7 +95,7 @@ final class Resolver
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// Resolve scalars starting with 'A' to !_tag
|
/// Resolve scalars starting with 'A' to !_tag
|
||||||
unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
import std.file : write;
|
import std.file : write;
|
||||||
import std.regex : regex;
|
import std.regex : regex;
|
||||||
|
@ -109,11 +109,8 @@ final class Resolver
|
||||||
resolver.addImplicitResolver("!tag", regex("A.*"), "A");
|
resolver.addImplicitResolver("!tag", regex("A.*"), "A");
|
||||||
loader.resolver = resolver;
|
loader.resolver = resolver;
|
||||||
|
|
||||||
//Note that we have no constructor from tag "!tag", so we can't
|
auto node = loader.load();
|
||||||
//actually load anything that resolves to this tag.
|
assert(node.tag == "!tag");
|
||||||
//See Constructor API documentation and tutorial for more information.
|
|
||||||
|
|
||||||
//auto node = loader.load();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package:
|
package:
|
||||||
|
|
Loading…
Reference in a new issue