Skip to content

Commit 3cb1cce

Browse files
committed
further codestyle in testdata/*
1 parent 1896dd1 commit 3cb1cce

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

testdata/unittest/hash.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ BOOST_AUTO_TEST_CASE(bits) {
8383

8484
BOOST_AUTO_TEST_CASE(next_power) {
8585
uint32_t t = static_cast<uint32_t>(1);
86-
CHECK_EQ(size_to_next_power(t), uint32_t(1));
86+
CHECK_EQ(size_to_next_power(t), static_cast<uint32_t>(1));
8787
uint32_t u = static_cast<uint32_t>(42);
88-
CHECK_EQ(size_to_next_power(u), uint32_t(64));
88+
CHECK_EQ(size_to_next_power(u), static_cast<uint32_t>(64));
8989
uint32_t v = static_cast<uint32_t>(128);
90-
CHECK_EQ(size_to_next_power(v), uint32_t(128));
90+
CHECK_EQ(size_to_next_power(v), static_cast<uint32_t>(128));
9191
uint32_t w = static_cast<uint32_t>(1) << 31;
92-
CHECK_EQ(size_to_next_power(w), uint32_t(1) << 31);
92+
CHECK_EQ(size_to_next_power(w), static_cast<uint32_t>(1) << 31);
9393
}
9494

9595
BOOST_AUTO_TEST_CASE(rehash) {

testdata/unittest/productive.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define BOOST_TEST_MAIN
3030
#define BOOST_TEST_MODULE productive
3131
#include <sstream>
32-
Add #include <string>
32+
#include <string>
3333
#include <boost/test/unit_test.hpp>
3434

3535
// include everything - no linking needed ...

testdata/unittest/runtime.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE(runtime_both) {
7171
CHECK_EQ(b, a);
7272
a = Runtime::Asm::Poly(23);
7373
b = Runtime::Poly(1, 23);
74-
CHECK_EQ(b.degree(), uint32_t(23));
74+
CHECK_EQ(b.degree(), static_cast<uint32_t>(23));
7575
CHECK_EQ(b, a);
7676
CHECK_EQ(a, b);
7777
b = Runtime::Poly(23, 3);

testdata/unittest/sequence.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
#define BOOST_TEST_DYN_LINK
2929
#define BOOST_TEST_MAIN
3030
#define BOOST_TEST_MODULE sequence
31-
#include <string>
3231
#include <string.h>
32+
#include <string>
3333
#include <boost/test/unit_test.hpp>
3434

3535
// include everything - no linking needed ...

testdata/unittest/shape.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ BOOST_AUTO_TEST_CASE(shape_set) {
205205
std::set<Shape> s;
206206
s.insert(g);
207207
s.insert(h);
208-
CHECK_EQ(s.size(), uint32_t(2));
208+
CHECK_EQ(s.size(), static_cast<uint32_t>(2));
209209
std::set<Shape>::iterator i = s.begin();
210210
std::ostringstream x;
211211
x << *i;

0 commit comments

Comments
 (0)