Copy test_template_vec.cpp
Recode test_template_vec.cpp to UTF-8
Include our Vector in test_template_vec.cpp
Comment out uncompilable lines from test_template_vec.cpp
Add -g to CPPFLAGS in vector_tests/makefile
Add make targets for test_template_vec

Ref issue #7

$ make test_template_vec && ./test_template_vec
(output empty)

Valgrind output:

    $ valgrind --tool=memcheck --leak-check=yes --track-origins=yes ./test_template_vec

    ==14274== Memcheck, a memory error detector
    ==14274== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
    ==14274== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
    ==14274== Command: ./test_template_vec
    ==14274==
    ==14274== Warning: client switching stacks?  SP change: 0xbedd36a0 --> 0x4022f9c
    ==14274==          to suppress, use: --max-stackframe=1160050940 or greater
    ==14274== Warning: client switching stacks?  SP change: 0x4022f9c --> 0xbedd36a0
    ==14274==          to suppress, use: --max-stackframe=1160050940 or greater
    ==14274==
    ==14274== HEAP SUMMARY:
    ==14274==     in use at exit: 0 bytes in 0 blocks
    ==14274==   total heap usage: 128 allocs, 128 frees, 24,114 bytes allocated
    ==14274==
    ==14274== All heap blocks were freed -- no leaks are possible
    ==14274==
    ==14274== For counts of detected and suppressed errors, rerun with: -v
    ==14274== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Add make target for running valgrind on Gtests

Ref issue #7

No memory leaks!

    $ valgrind --tool=memcheck --leak-check=yes --track-origins=yes ./run_test

    ==14741== Memcheck, a memory error detector
    ==14741== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
    ==14741== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
    ==14741== Command: ./run_test
    ==14741==
    ==14741== Warning: client switching stacks?  SP change: 0xbee1a6b0 --> 0x4022f9c
    ==14741==          to suppress, use: --max-stackframe=1159760108 or greater
    ==14741== Warning: client switching stacks?  SP change: 0x4022f9c --> 0xbee1a6b0
    ==14741==          to suppress, use: --max-stackframe=1159760108 or greater
    [==========] Running 30 tests from 1 test case.
    [----------] Global test environment set-up.
    [----------] 30 tests from Vector
    [ RUN      ] Vector.ConstructorDefault
    [       OK ] Vector.ConstructorDefault (85 ms)
    [ RUN      ] Vector.ConstructorCopy
    [       OK ] Vector.ConstructorCopy (101 ms)
    [ RUN      ] Vector.ConstructorInitlist
    [       OK ] Vector.ConstructorInitlist (49 ms)
    [ RUN      ] Vector.ConstructorMove
    [       OK ] Vector.ConstructorMove (66 ms)
    [ RUN      ] Vector.ConstructorSize
    [       OK ] Vector.ConstructorSize (24 ms)
    [ RUN      ] Vector.ConstructorZeroSize
    [       OK ] Vector.ConstructorZeroSize (22 ms)
    [ RUN      ] Vector.ConstructorRepeat
    [       OK ] Vector.ConstructorRepeat (24 ms)
    [ RUN      ] Vector.OperatorBracketWrite
    [       OK ] Vector.OperatorBracketWrite (37 ms)
    [ RUN      ] Vector.OperatorBracketRange
    [       OK ] Vector.OperatorBracketRange (346 ms)
    [ RUN      ] Vector.OperatorBracketConst
    [       OK ] Vector.OperatorBracketConst (29 ms)
    [ RUN      ] Vector.AssignmentOperator
    [       OK ] Vector.AssignmentOperator (42 ms)
    [ RUN      ] Vector.AssignmentOperatorSelf
    [       OK ] Vector.AssignmentOperatorSelf (17 ms)
    [ RUN      ] Vector.AssignmentOperatorList
    [       OK ] Vector.AssignmentOperatorList (28 ms)
    [ RUN      ] Vector.AssignmentOperatorMove
    [       OK ] Vector.AssignmentOperatorMove (23 ms)
    [ RUN      ] Vector.PushBack
    [       OK ] Vector.PushBack (73 ms)
    [ RUN      ] Vector.Insert
    [       OK ] Vector.Insert (27 ms)
    [ RUN      ] Vector.InsertALotOfItems
    [       OK ] Vector.InsertALotOfItems (360 ms)
    [ RUN      ] Vector.InsertBeginning
    [       OK ] Vector.InsertBeginning (24 ms)
    [ RUN      ] Vector.InsertEnd
    [       OK ] Vector.InsertEnd (24 ms)
    [ RUN      ] Vector.InsertRange
    [       OK ] Vector.InsertRange (86 ms)
    [ RUN      ] Vector.Erase
    ==14741== Invalid read of size 4
    ==14741==    at 0x8051F2C: Vector<int>::erase(unsigned int) (kth_cprog_vektor.cpp:171)
    ==14741==    by 0x804E19A: Vector_Erase_Test::TestBody() (vector_tests.cpp:242)
    ==14741==    by 0x408EABA: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (in /usr/lib/libgtest.so)
    ==14741==    by 0x407F86D: testing::Test::Run() (in /usr/lib/libgtest.so)
    ==14741==    by 0x407F927: testing::TestInfo::Run() (in /usr/lib/libgtest.so)
    ==14741==    by 0x407FA5E: testing::TestCase::Run() (in /usr/lib/libgtest.so)
    ==14741==    by 0x407FD14: testing::internal::UnitTestImpl::RunAllTests() (in /usr/lib/libgtest.so)
    ==14741==    by 0x407FFF9: testing::UnitTest::Run() (in /usr/lib/libgtest.so)
    ==14741==    by 0x80497B8: RUN_ALL_TESTS() (gtest.h:2288)
    ==14741==    by 0x8049741: main (test_runner.cpp:5)
    ==14741==  Address 0x441a3a8 is 0 bytes after a block of size 16 alloc'd
    ==14741==    at 0x402AA5C: operator new[](unsigned int) (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
    ==14741==    by 0x8051306: Vector<int>::Vector(unsigned int) (kth_cprog_vektor.cpp:71)
    ==14741==    by 0x804E15B: Vector_Erase_Test::TestBody() (vector_tests.cpp:237)
    ==14741==    by 0x408EABA: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (in /usr/lib/libgtest.so)
    ==14741==    by 0x407F86D: testing::Test::Run() (in /usr/lib/libgtest.so)
    ==14741==    by 0x407F927: testing::TestInfo::Run() (in /usr/lib/libgtest.so)
    ==14741==    by 0x407FA5E: testing::TestCase::Run() (in /usr/lib/libgtest.so)
    ==14741==    by 0x407FD14: testing::internal::UnitTestImpl::RunAllTests() (in /usr/lib/libgtest.so)
    ==14741==    by 0x407FFF9: testing::UnitTest::Run() (in /usr/lib/libgtest.so)
    ==14741==    by 0x80497B8: RUN_ALL_TESTS() (gtest.h:2288)
    ==14741==    by 0x8049741: main (test_runner.cpp:5)
    ==14741==
    [       OK ] Vector.Erase (27 ms)
    [ RUN      ] Vector.EraseRange
    [       OK ] Vector.EraseRange (26 ms)
    [ RUN      ] Vector.Clear
    [       OK ] Vector.Clear (16 ms)
    [ RUN      ] Vector.SortAscending
    [       OK ] Vector.SortAscending (75 ms)
    [ RUN      ] Vector.SortDescending
    [       OK ] Vector.SortDescending (59 ms)
    [ RUN      ] Vector.SortUniqueAscending
    [       OK ] Vector.SortUniqueAscending (47 ms)
    [ RUN      ] Vector.SortUniqueDescending
    [       OK ] Vector.SortUniqueDescending (36 ms)
    [ RUN      ] Vector.ExistsTrue
    [       OK ] Vector.ExistsTrue (39 ms)
    [ RUN      ] Vector.ExistsFalse
    [       OK ] Vector.ExistsFalse (18 ms)
    [ RUN      ] Vector.Size
    [       OK ] Vector.Size (14 ms)
    [----------] 30 tests from Vector (1955 ms total)

    [----------] Global test environment tear-down
    [==========] 30 tests from 1 test case ran. (2269 ms total)
    [  PASSED  ] 30 tests.
    ==14741==
    ==14741== HEAP SUMMARY:
    ==14741==     in use at exit: 0 bytes in 0 blocks
    ==14741==   total heap usage: 721 allocs, 721 frees, 199,818 bytes allocated
    ==14741==
    ==14741== All heap blocks were freed -- no leaks are possible
    ==14741==
    ==14741== For counts of detected and suppressed errors, rerun with: -v
    ==14741== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Close issue #7: Lab1 1.5: Vector<T>

https://github.com/ZetaTwo/dd2387-laborationer/issues/7