i take back everything i've said about unit tests

svn:r2547
This commit is contained in:
Roger Dingledine 2004-10-16 22:56:03 +00:00
parent a1bf39f698
commit e9e9a25881

View File

@ -551,7 +551,7 @@ void smartlist_insert(smartlist_t *sl, int idx, void *val)
{ {
tor_assert(sl); tor_assert(sl);
tor_assert(idx>=0); tor_assert(idx>=0);
tor_assert(idx < sl->num_used); tor_assert(idx <= sl->num_used);
if (idx == sl->num_used) { if (idx == sl->num_used) {
smartlist_add(sl, val); smartlist_add(sl, val);
} else { } else {