From 0fbcc3a0c7ef4835c77c5d8b87cc8732cc3f90df Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 30 Jul 2021 09:16:27 -0700 Subject: Fixed uninitializsed bug in Bu::Array::setSize. When setCapacity was used before setSize some elements were not being properly initialized in the array. --- src/unit/array.unit | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/unit/array.unit') diff --git a/src/unit/array.unit b/src/unit/array.unit index 83401c1..e9f2bdf 100644 --- a/src/unit/array.unit +++ b/src/unit/array.unit @@ -101,4 +101,12 @@ suite Array unitTest( aInts[j] == j ); } } + + test setSize + { + Bu::Array aStr( 3 ); + aStr.setSize( 3 ); + aStr[1] = "Hello"; + aStr[0] = aStr[1].clone(); + } } -- cgit v1.2.3