minor refactor: move tests to dyaml.test.*, remove spaces at ends of lines (#91)

minor refactor: move tests to dyaml.test.*, remove spaces at ends of lines
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
Cameron Ross 2018-02-27 20:24:05 -04:00 committed by The Dlang Bot
parent e7ea38652b
commit 5ad4c3c435
11 changed files with 94 additions and 94 deletions

View file

@ -39,16 +39,16 @@ dyaml_src = [
'source/dyaml/style.d',
'source/dyaml/tag.d',
'source/dyaml/tagdirective.d',
'source/dyaml/testcommon.d',
'source/dyaml/testcompare.d',
'source/dyaml/testconstructor.d',
'source/dyaml/testemitter.d',
'source/dyaml/testerrors.d',
'source/dyaml/testinputoutput.d',
'source/dyaml/testreader.d',
'source/dyaml/testrepresenter.d',
'source/dyaml/testresolver.d',
'source/dyaml/testtokens.d',
'source/dyaml/test/common.d',
'source/dyaml/test/compare.d',
'source/dyaml/test/constructor.d',
'source/dyaml/test/emitter.d',
'source/dyaml/test/errors.d',
'source/dyaml/test/inputoutput.d',
'source/dyaml/test/reader.d',
'source/dyaml/test/representer.d',
'source/dyaml/test/resolver.d',
'source/dyaml/test/tokens.d',
'source/dyaml/token.d',
'source/dyaml/unused.d',
'source/dyaml/zerostring.d',

View file

@ -4,7 +4,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testcommon;
module dyaml.test.common;
version(unittest)
{
@ -34,7 +34,7 @@ package:
void run(F ...)(string testName, void function(bool, F) testFunction,
string[] unittestExt, string[] skipExt = [])
{
immutable string dataDir = __FILE_FULL_PATH__.dirName ~ "/../../test/data";
immutable string dataDir = __FILE_FULL_PATH__.dirName ~ "/../../../test/data";
auto testFilenames = findTestFilenames(dataDir);
bool verbose = false;

View file

@ -4,13 +4,13 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testcompare;
module dyaml.test.compare;
version(unittest)
{
import dyaml.testcommon;
import dyaml.test.common;
import dyaml.token;

View file

@ -4,7 +4,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testconstructor;
module dyaml.test.constructor;
version(unittest)
@ -17,7 +17,7 @@ import std.string;
import std.typecons;
import dyaml.tag;
import dyaml.testcommon;
import dyaml.test.common;
///Expected results of loading test inputs.

View file

@ -4,7 +4,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testemitter;
module dyaml.test.emitter;
version(unittest)
@ -18,7 +18,7 @@ import std.typecons;
import dyaml.stream;
import dyaml.dumper;
import dyaml.event;
import dyaml.testcommon;
import dyaml.test.common;
import dyaml.token;

View file

@ -4,7 +4,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testerrors;
module dyaml.test.errors;
version(unittest)
@ -12,7 +12,7 @@ version(unittest)
import std.file;
import dyaml.testcommon;
import dyaml.test.common;
/// Loader error unittest from file stream.

View file

@ -4,7 +4,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testinputoutput;
module dyaml.test.inputoutput;
version(unittest)
@ -14,7 +14,7 @@ import std.array;
import std.file;
import std.system;
import dyaml.testcommon;
import dyaml.test.common;
import dyaml.stream;

View file

@ -4,13 +4,13 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testreader;
module dyaml.test.reader;
version(unittest)
{
import dyaml.testcommon;
import dyaml.test.common;
import dyaml.reader;

View file

@ -4,7 +4,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testrepresenter;
module dyaml.test.representer;
version(unittest)
@ -14,8 +14,8 @@ import std.path;
import std.exception;
import std.typecons;
import dyaml.testcommon;
import dyaml.testconstructor;
import dyaml.test.common;
import dyaml.test.constructor;
/// Representer unittest.
@ -27,7 +27,7 @@ import dyaml.testconstructor;
void testRepresenterTypes(bool verbose, string codeFilename)
{
string baseName = codeFilename.baseName.stripExtension;
enforce((baseName in dyaml.testconstructor.expected) !is null,
enforce((baseName in dyaml.test.constructor.expected) !is null,
new Exception("Unimplemented representer test: " ~ baseName));
Node[] expectedNodes = expected[baseName];

View file

@ -4,7 +4,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testresolver;
module dyaml.test.resolver;
version(unittest)
@ -13,7 +13,7 @@ version(unittest)
import std.file;
import std.string;
import dyaml.testcommon;
import dyaml.test.common;
/**

View file

@ -4,7 +4,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dyaml.testtokens;
module dyaml.test.tokens;
version(unittest)
@ -13,7 +13,7 @@ version(unittest)
import std.array;
import std.file;
import dyaml.testcommon;
import dyaml.test.common;
import dyaml.token;