From 0dbd05daa47b85b5c98cc6c49c3a3cfd87ef2bc8 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Thu, 3 Jan 2019 19:16:13 +0100 Subject: [PATCH] STYLE: minor adjustment of test case --- applications/test/Tuple2/Test-Tuple2.C | 31 ++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/applications/test/Tuple2/Test-Tuple2.C b/applications/test/Tuple2/Test-Tuple2.C index 31b6ab008d..378d727b6f 100644 --- a/applications/test/Tuple2/Test-Tuple2.C +++ b/applications/test/Tuple2/Test-Tuple2.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2019 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -22,16 +22,18 @@ License along with OpenFOAM. If not, see . Application - Tuple2Test + Test-Tuple2 Description \*---------------------------------------------------------------------------*/ +#include "Pair.H" #include "Tuple2.H" #include "label.H" #include "scalar.H" #include "List.H" +#include "ListOps.H" #include "ops.H" #include @@ -75,7 +77,7 @@ int main() indexedScalar t2(1, 3.2); Info<< "tuple: " - << t2 << " " + << t2 << " => " << t2.first() << " " << t2.second() << nl; // As list. Generated so that we have duplicate indices @@ -110,7 +112,28 @@ int main() Info<< "special sorted tuples - sort on value, reverse on index:" << nl << list1 << nl; - Info<< "End\n" << endl; + + Info<< nl << nl << "Pairs" << nl; + + typedef Pair