Beispiel #1
0
        public void AnyLastAxis_NotAllFalse()
        {
            // arrange
            const int NumElements = 4;
            var       targetData  = new bool[NumElements];
            var       srcData     = new[] { false, false, true, true };

            var target = new DataAndLayout <bool>(targetData, new FastAccess(new Layout(new int[] { NumElements }, 0, new int[] { 1 })));
            var src    = new DataAndLayout <bool>(srcData, new FastAccess(new Layout(new int[] { NumElements }, 0, new int[] { 1 })));

            // action
            ScalarOps.AnyLastAxis(target, src);

            // assert
            CollectionAssert.AreEqual(new[] { true, false, false, false }, targetData);
        }