From 4f14b8923f8a60b1143fc91babfb696d18088865 Mon Sep 17 00:00:00 2001 From: mrossinek Date: Wed, 2 Jan 2019 16:32:16 +0100 Subject: [PATCH] Fix variant_subtract test case after PR #2095 --- test/variant_subtract.t.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/variant_subtract.t.cpp b/test/variant_subtract.t.cpp index 2de383973..59b94a43b 100644 --- a/test/variant_subtract.t.cpp +++ b/test/variant_subtract.t.cpp @@ -139,9 +139,10 @@ int main (int, char**) try {Variant v32 = v3 - v2; t.fail ("foo - 3.14 --> error");} catch (...) {t.pass ("foo - 3.14 --> error");} - // string - string -> ERROR - try {Variant v33 = v3 - v3; t.fail ("foo - foo --> error");} - catch (...) {t.pass ("foo - foo --> error");} + // string - string -> concatenated string + Variant v33 = v3 - v3; + t.is (v33.type (), Variant::type_string, "foo - foo --> string"); + t.is (v33.get_string (), "foo-foo", "foo - foo --> foo-foo"); // string - date -> ERROR try {Variant v34 = v3 - v4; t.fail ("foo - 1234567890 --> error");}