projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
810fc40
)
Fix rounding issue in unittest for block calculation.
author
Kim Kulling
<kim.kulling@googlemail.com>
Sun, 30 Oct 2016 10:16:31 +0000
(11:16 +0100)
committer
Kim Kulling
<kim.kulling@googlemail.com>
Sun, 30 Oct 2016 10:16:31 +0000
(11:16 +0100)
test/unit/utIOStreamBuffer.cpp
patch
|
blob
|
history
diff --git
a/test/unit/utIOStreamBuffer.cpp
b/test/unit/utIOStreamBuffer.cpp
index
a6308fc
..
ded6c0e
100644
(file)
--- a/
test/unit/utIOStreamBuffer.cpp
+++ b/
test/unit/utIOStreamBuffer.cpp
@@
-99,6
+99,9
@@
TEST_F( IOStreamBufferTest, readlineTest ) {
TestDefaultIOStream myStream( fs, buffer );
size_t size( myStream.FileSize() );
size_t numBlocks( size / myBuffer.cacheSize() );
+ if ( size % myBuffer.cacheSize() > 0 ) {
+ numBlocks++;
+ }
EXPECT_TRUE( myBuffer.open( &myStream ) );
EXPECT_EQ( numBlocks, myBuffer.getNumBlocks() );
EXPECT_TRUE( myBuffer.close() );