modified: dyaml/constructor.d

modified:   test/src/common.d
This commit is contained in:
John-Colvin 2012-12-04 15:34:29 +00:00
parent 94adb4241e
commit 75e2e7f80a
2 changed files with 6 additions and 1 deletions

View file

@ -328,6 +328,11 @@ final class Constructor
enforce((tag in *delegates!T) !is null, enforce((tag in *delegates!T) !is null,
new Error("No constructor function from " ~ type ~ new Error("No constructor function from " ~ type ~
" for tag " ~ tag.get(), start, end)); " for tag " ~ tag.get(), start, end));
static if(is(T : string)) {
value = strip(value);
}
Node node = Node(value); Node node = Node(value);
try try
{ {

View file

@ -36,7 +36,7 @@ void run(F ...)(string testName, void function(bool, F) testFunction,
{ {
immutable string dataDir = "test/data"; immutable string dataDir = "test/data";
auto testFilenames = findTestFilenames(dataDir); auto testFilenames = findTestFilenames(dataDir);
bool verbose = true; bool verbose = false;
Result[] results; Result[] results;
if(unittestExt.length > 0) if(unittestExt.length > 0)