From 3c36d4ad63841dc94934cf878e92477ee4fa4ae6 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Mon, 28 Jul 2014 23:20:35 +0200 Subject: [PATCH] Replaced some old 'in' params with const --- test/src/common.d | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/src/common.d b/test/src/common.d index 5611636..30900f7 100644 --- a/test/src/common.d +++ b/test/src/common.d @@ -85,7 +85,7 @@ alias Tuple!(string, "name", string[], "filenames", TestStatus, "kind", string, * * Returns: Test input base filenames and their extensions. */ -string[][string] findTestFilenames(in string dir) +string[][string] findTestFilenames(const string dir) { //Groups of extensions indexed by base names. string[][string] names; @@ -112,7 +112,7 @@ string[][string] findTestFilenames(in string dir) * tuple = Tuple to copy to. * strings = Strings to copy. */ -void stringsToTuple(uint index, F ...)(ref F tuple, in string[] strings) +void stringsToTuple(uint index, F ...)(ref F tuple, const string[] strings) in{assert(F.length == strings.length);} body { @@ -130,8 +130,8 @@ body * * Returns: Information about the results of the unittest. */ -Result execute(F ...)(in string testName, void function(bool, F) testFunction, - string[] filenames, in bool verbose) +Result execute(F ...)(const string testName, void function(bool, F) testFunction, + string[] filenames, const bool verbose) { if(verbose) { @@ -167,7 +167,7 @@ Result execute(F ...)(in string testName, void function(bool, F) testFunction, * Params: results = Unittest results. * verbose = Print verbose output? */ -void display(Result[] results, in bool verbose) +void display(Result[] results, const bool verbose) { if(results.length > 0 && !verbose){write("\n");}