Details
-
Test
-
Status: Open
-
P1
-
Resolution: Unresolved
-
2.34.0
-
None
Description
Currently failing a test on core sdk on the following assertion. From the test description, it seems like (totalNumBatches <= numElements && totalNumBatches >= numElements / batchSize) is what is wanted instead, but currently it is testing for numFullBatches instead and is failing the test. Is this intended?
Current code:
assertTrue( String.format( "total number of batches should be in the range [%d, %d] but got %d", numElements, numElements / batchSize, numFullBatches), numFullBatches <= numElements && numFullBatches >= numElements / batchSize)
Source: