From 1543a380c67da1dbd1f4c03b66a13267090307f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Fri, 11 Oct 2013 13:39:16 +0200 Subject: [PATCH] Expanded unitary test in compare_vectors routine to cover more cases. --- matlab/utilities/general/compare_vectors.m | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/matlab/utilities/general/compare_vectors.m b/matlab/utilities/general/compare_vectors.m index 68f57c2d2..a0c56b336 100644 --- a/matlab/utilities/general/compare_vectors.m +++ b/matlab/utilities/general/compare_vectors.m @@ -80,8 +80,15 @@ end %$ t(1) = dyn_assert(compare_vectors(@lt, [1990 3], [1991 3]), 1); %$ t(2) = dyn_assert(compare_vectors(@lt, [1990 3], [1990 3]), 0); %$ t(3) = dyn_assert(compare_vectors(@le, [1990 3], [1990 3]), 1); -%$ t(4) = dyn_assert(compare_vectors(@ge, [1991 3], [1990 3]), 1); -%$ t(5) = dyn_assert(compare_vectors(@ge, [1991 3], [1991 3]), 1); -%$ t(4) = dyn_assert(compare_vectors(@gt, [1991 3], [1990 3]), 1); +%$ t(4) = dyn_assert(compare_vectors(@lt, [1990 3], [1990 4]), 1); +%$ t(5) = dyn_assert(compare_vectors(@le, [1990 3], [1990 4]), 1); +%$ t(6) = dyn_assert(compare_vectors(@gt, [1990 3], [1991 3]), 0); +%$ t(7) = dyn_assert(compare_vectors(@gt, [1990 3], [1990 3]), 0); +%$ t(8) = dyn_assert(compare_vectors(@ge, [1990 3], [1990 3]), 1); +%$ t(9) = dyn_assert(compare_vectors(@gt, [1990 3], [1990 4]), 0); +%$ t(10) = dyn_assert(compare_vectors(@ge, [1990 3], [1990 4]), 0); +%$ t(11) = dyn_assert(compare_vectors(@le, [1991 3], [1990 4]), 0); +%$ t(12) = dyn_assert(compare_vectors(@le, [1991 3], [1990 2]), 0); +%$ t(13) = dyn_assert(compare_vectors(@le, [1945 2], [1950, 1]),1); %$ T = all(t); %@eof:1 \ No newline at end of file