From 86079840f0f6ddbc85656e963905599dee5a740c Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Wed, 19 Jul 2017 10:41:13 +0200 Subject: [PATCH] fix #71 - Unittests of package fails when calling as dependency --- source/dyaml/testcommon.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dyaml/testcommon.d b/source/dyaml/testcommon.d index 1be1f8b..ea50c9a 100644 --- a/source/dyaml/testcommon.d +++ b/source/dyaml/testcommon.d @@ -34,7 +34,7 @@ package: void run(F ...)(string testName, void function(bool, F) testFunction, string[] unittestExt, string[] skipExt = []) { - immutable string dataDir = "test/data"; + immutable string dataDir = __FILE_FULL_PATH__.dirName ~ "/../../test/data"; auto testFilenames = findTestFilenames(dataDir); bool verbose = false;