Using std.typecons.Flag where possible, and more in->const.

This commit is contained in:
kiith-sa 2012-09-14 01:21:01 +02:00
parent 19d88d156a
commit edf3e2a799
11 changed files with 93 additions and 80 deletions

View file

@ -11,6 +11,7 @@ import std.datetime;
import std.exception;
import std.path;
import std.string;
import std.typecons;
import dyaml.tag;
import dyaml.testcommon;
@ -402,7 +403,7 @@ void testConstructor(bool verbose, string dataFilename, string codeDummy)
size_t i = 0;
foreach(node; loader)
{
if(!node.equals!false(exp[i]))
if(!node.equals!(No.useTag)(exp[i]))
{
if(verbose)
{

View file

@ -9,6 +9,7 @@ module dyaml.testrepresenter;
import std.path;
import std.exception;
import std.typecons;
import dyaml.testcommon;
import dyaml.testconstructor;
@ -69,7 +70,7 @@ void testRepresenterTypes(bool verbose, string codeFilename)
assert(expectedNodes.length == readNodes.length);
foreach(n; 0 .. expectedNodes.length)
{
assert(expectedNodes[n].equals!false(readNodes[n]));
assert(expectedNodes[n].equals!(No.useTag)(readNodes[n]));
}
}
}