Changeset 2268


Ignore:
Timestamp:
Jan 23, 2013, 7:29:47 PM (7 years ago)
Author:
sam
Message:

test: add unit tests for the String class; they currently fail
because we actually have a bug!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/string.cpp

    r2267 r2268  
    8888
    8989        s1 += s2;
     90        LOLUNIT_ASSERT_EQUAL(s1.Count(), 4);
    9091        LOLUNIT_ASSERT_EQUAL(s1[0], 'a');
    9192        LOLUNIT_ASSERT_EQUAL(s1[1], 'b');
     
    9596
    9697        s2 += s2;
     98        LOLUNIT_ASSERT_EQUAL(s2.Count(), 4);
    9799        LOLUNIT_ASSERT_EQUAL(s2[0], 'c');
    98100        LOLUNIT_ASSERT_EQUAL(s2[1], 'd');
Note: See TracChangeset for help on using the changeset viewer.