Small change to Timecode display (SMTPE) in the Mackie.
[ardour.git] / libs / taglib / tests / test_map.cpp
1 #include <cppunit/extensions/HelperMacros.h>
2 #include <tstring.h>
3 #include <tmap.h>
4
5 using namespace std;
6 using namespace TagLib;
7
8 class TestMap : public CppUnit::TestFixture
9 {
10   CPPUNIT_TEST_SUITE(TestMap);
11   CPPUNIT_TEST(testInsert);
12   CPPUNIT_TEST_SUITE_END();
13
14 public:
15
16   void testInsert()
17   {
18     Map<String, int> m;
19     m.insert("foo", 3);
20     CPPUNIT_ASSERT_EQUAL(3, m["foo"]);
21     m.insert("foo", 7);
22     CPPUNIT_ASSERT_EQUAL(7, m["foo"]);
23   }
24
25 };
26
27 CPPUNIT_TEST_SUITE_REGISTRATION(TestMap);