mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
22 lines
332 B
C++
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");
|
|
}
|
|
}
|