ultimatepp/autotest/ValueMapVa/ValueMapVa.cpp
cxl d53864d32b .autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@13930 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-01-22 09:23:05 +00:00

22 lines
332 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
Value m = ValueMap{ { 1, "one" }, { 2, "two" } };
{
String s;
for(Value v : m)
s << v;
DUMP(s);
ASSERT(s == "onetwo");
}
{
String s;
for(int i = 0; i < m.GetCount(); i++)
s << m[i];
DUMP(s);
ASSERT(s == "onetwo");
}
}