diff --git a/applications/test/List/Test-List.C b/applications/test/List/Test-List.C index bbba8219b3..9ab2732c2e 100644 --- a/applications/test/List/Test-List.C +++ b/applications/test/List/Test-List.C @@ -76,7 +76,6 @@ int main(int argc, char *argv[]) Info<<"is >>: " << intlist << endl; } - List list1(IStringStream("1 ((0 1 2))")()); Info<< "list1: " << list1 << endl; @@ -150,7 +149,6 @@ int main(int argc, char *argv[]) Info<< "normal: " << longLabelList << nl; Info<< "flatOutput: " << flatOutput(longLabelList) << nl; // Info<< "flatOutput(14): " << flatOutput(longLabelList, 14) << nl; - // Info<< "flatOutput(15): " << flatOutput(longLabelList, 15) << nl; stringList longStringList(12); forAll(longStringList, i) @@ -165,6 +163,66 @@ int main(int argc, char *argv[]) // contiguous longStringList[i].resize(3, 'a' + i); } + // test SubList and labelRange + { + Info<< nl; + labelList longLabelList = identity(25); + reverse(longLabelList); + + FixedList fixedLabelList{0,1,2,3,4,5}; + const labelList constLabelList = identity(25); + + Info<< "full-list: " << flatOutput(longLabelList) << nl; + + labelRange range1(-15, 25); + Info<<"sub range:" << range1 << "="; + Info<< SubList