Sha256: be91f5d817d2403a36036a10e8ed1d93f9bd655abcc4471db6e92d0d96ce171b

Contents?: true

Size: 569 Bytes

Versions: 135

Compression:

Stored size: 569 Bytes

Contents

#include <utility>
#include <vector>
#include <algorithm>

#include "cppunit/cppunit_proxy.h"

#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
using namespace std;
#endif

//
// TestCase class
//
class PairTest : public CPPUNIT_NS::TestCase
{
  CPPUNIT_TEST_SUITE(PairTest);
  CPPUNIT_TEST(pair0);
  CPPUNIT_TEST_SUITE_END();

protected:
  void pair0();
};

CPPUNIT_TEST_SUITE_REGISTRATION(PairTest);

//
// tests implementation
//
void PairTest::pair0()
{
  pair<int, int> p = make_pair(1, 10);

  CPPUNIT_ASSERT(p.first==1);
  CPPUNIT_ASSERT(p.second==10);
}

Version data entries

135 entries across 135 versions & 2 rubygems

Version Path
rhodes-2.4.0 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.4.0.beta.2 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.4.0.beta.1 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.3.2 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.3.2.beta.2 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.3.2.beta.1 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.3.1 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.3.1.beta.1 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.3.0 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.3.0.beta.3 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.3.0.beta.2 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.3.0.beta.1 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.2.6 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.2.6.beta.1 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.2.5 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.2.5.beta.3 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.2.5.beta.2 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.2.5.beta.1 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.2.4.beta.1 platform/shared/stlport/test/unit/pair_test.cpp
rhodes-2.2.3 platform/shared/stlport/test/unit/pair_test.cpp