mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge pull request #54 from xpol/fixes-test-warnings
Fixes warnings about compare double to bool.
This commit is contained in:
commit
0ee716f94f
|
@ -1035,7 +1035,7 @@ public:
|
|||
|
||||
auto range = ws.get_range("A2:B3");
|
||||
TS_ASSERT_EQUALS((*(*range.begin()).begin()).get_value<double>(), 3.14);
|
||||
TS_ASSERT_EQUALS((*(--(*(--range.end())).end())).get_value<double>(), false);
|
||||
TS_ASSERT_EQUALS((*(--(*(--range.end())).end())).get_value<bool>(), false);
|
||||
}
|
||||
|
||||
void test_get_squared_range()
|
||||
|
@ -1048,7 +1048,7 @@ public:
|
|||
|
||||
auto range = ws.get_squared_range(1, 2, 2, 3);
|
||||
TS_ASSERT_EQUALS((*(*range.begin()).begin()).get_value<double>(), 3.14);
|
||||
TS_ASSERT_EQUALS((*(--(*(--range.end())).end())).get_value<double>(), false);
|
||||
TS_ASSERT_EQUALS((*(--(*(--range.end())).end())).get_value<bool>(), false);
|
||||
}
|
||||
|
||||
void test_operators()
|
||||
|
|
Loading…
Reference in New Issue
Block a user