From bd98ca10d767020bffee1057423979b36d2bfc6b Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Fri, 29 Jul 2016 12:21:38 +0200 Subject: [PATCH] add unittest attributes to std.algorithm.comparison --- std/algorithm/comparison.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/std/algorithm/comparison.d b/std/algorithm/comparison.d index bb943d00a..14c5a091e 100644 --- a/std/algorithm/comparison.d +++ b/std/algorithm/comparison.d @@ -369,7 +369,7 @@ auto castSwitch(choices...)(Object switchObject) } /// -unittest +@system unittest { import std.algorithm.iteration : map; import std.format : format; @@ -400,7 +400,7 @@ unittest } /// Using with void handlers: -unittest +@system unittest { import std.exception : assertThrown; @@ -421,7 +421,7 @@ unittest )(); } -unittest +@system unittest { import core.exception : SwitchError; import std.exception : assertThrown; @@ -1629,7 +1629,7 @@ auto predSwitch(alias pred = "a == b", T, R ...)(T switchExpression, lazy R choi assertThrown!Exception(factorial(-9)); } -unittest +@system unittest { import core.exception : SwitchError; import std.exception : assertThrown;