File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,12 @@ void TagSetTest::testTagSet() {
6565 OLA_ASSERT_EQ (string (" foo" ), set1.ToString ());
6666 OLA_ASSERT_TRUE (set1.Contains (tag));
6767 OLA_ASSERT_FALSE (set1.Contains (tag2));
68+ // Add the same tag again (shouldn't change anything)
6869 set1.AddTag (tag);
69- OLA_ASSERT_TRUE (set1.Contains (tag));
7070 OLA_ASSERT_EQ (1u , set1.Size ());
71+ OLA_ASSERT_EQ (string (" foo" ), set1.ToString ());
72+ OLA_ASSERT_TRUE (set1.Contains (tag));
73+ OLA_ASSERT_FALSE (set1.Contains (tag2));
7174
7275 // now test the packing
7376 unsigned int buffer_size2 = 32 + 1 ;
Original file line number Diff line number Diff line change @@ -164,8 +164,9 @@ class TagSet {
164164 std::ostringstream str;
165165 std::set<std::string>::const_iterator iter;
166166 for (iter = m_tags.begin (); iter != m_tags.end (); ++iter) {
167- if (iter != m_tags.begin ())
167+ if (iter != m_tags.begin ()) {
168168 str << " ," ;
169+ }
169170 str << *iter;
170171 }
171172 return str.str ();
Original file line number Diff line number Diff line change @@ -206,8 +206,9 @@ class UIDSet {
206206 std::ostringstream str;
207207 std::set<UID>::const_iterator iter;
208208 for (iter = m_uids.begin (); iter != m_uids.end (); ++iter) {
209- if (iter != m_uids.begin ())
209+ if (iter != m_uids.begin ()) {
210210 str << " ," ;
211+ }
211212 str << *iter;
212213 }
213214 return str.str ();
You can’t perform that action at this time.
0 commit comments