summaryrefslogtreecommitdiff
path: root/tests/t0004-vector.c
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite the unit testing suiteVicent Marti2011-02-021-27/+0
| | | | | | | | | | | NIH Enterprises presents: a new testing system based on CuTesT, which is faster than our previous one and fortunately uses no preprocessing on the source files, which means we can run that from CMake. The test suites have been gathered together into bigger files (one file per suite, testing each of the different submodules of the library). Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Fixed two buffer handling errors in vector.cAlex Budovski2011-01-081-0/+27
- remove() would read one-past array bounds. - resize() would fail if the initial size was 1, because it multiplied by 1.75 and truncated the resulting value. The buffer would always remain at size 1, but elements would repeatedly be appended (via insert()) causing a crash.