Ignore:
Timestamp:
May 1, 2012, 8:33:19 PM (9 years ago)
Author:
sam
Message:

core: the Array class now properly works with non-POD types.

File:
1 edited

Legend:

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

    r1326 r1328  
    5555    }
    5656
     57    LOLUNIT_TEST(ArrayRemove)
     58    {
     59        Array<int> a;
     60        a.Push(0);
     61        a.Push(1);
     62        a.Push(2);
     63        a.Push(3);
     64        a.Remove(1);
     65
     66        LOLUNIT_ASSERT_EQUAL(a[0], 0);
     67        LOLUNIT_ASSERT_EQUAL(a[1], 2);
     68        LOLUNIT_ASSERT_EQUAL(a[2], 3);
     69    }
     70
    5771    LOLUNIT_TEST(EightElements)
    5872    {
Note: See TracChangeset for help on using the changeset viewer.