X-Git-Url: https://git.llucax.com/software/dgc/naive.git/blobdiff_plain/1510e826d84ca402a00c5cab2d2e2d172b8602d2..HEAD:/gc/dynarray.d?ds=sidebyside diff --git a/gc/dynarray.d b/gc/dynarray.d index 9836258..bd387cf 100644 --- a/gc/dynarray.d +++ b/gc/dynarray.d @@ -153,19 +153,19 @@ private: DynArray!(int) array; assert (array.size == 0); assert (array.capacity == 0); - assert (array.data == null); + assert (array.data is null); foreach (x; array) assert (false, "there should be no elements in the array"); array.append(5); assert (array.size == 1); assert (array.capacity >= 1); - assert (array.data); + assert (array.data !is null); foreach (x; array) assert (x == 5); array.append(6); assert (array.size == 2); assert (array.capacity >= 2); - assert (array.data); + assert (array.data !is null); int i = 0; foreach (x; array) assert (x == 5 + i++); @@ -173,19 +173,19 @@ private: array.remove(5); assert (array.size == 1); assert (array.capacity >= 1); - assert (array.data); + assert (array.data !is null); foreach (x; array) assert (x == 6); array.expand(100); assert (array.size == 1); assert (array.capacity >= 100); - assert (array.data); + assert (array.data !is null); foreach (x; array) assert (x == 6); array.clear(); assert (array.size == 0); assert (array.capacity == 0); - assert (array.data == null); + assert (array.data is null); foreach (x; array) assert (false, "there should be no elements in the array"); }