mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -36,15 +36,15 @@ UNIT_TEST(PackerTest_SimplePack)
|
||||
|
||||
m2::Packer::handle_t h2 = p.pack(5, 5);
|
||||
|
||||
// Possibly we should restore this checks
|
||||
// Possibly we should restore this checks
|
||||
|
||||
// TEST_EQUAL(p.isPacked(h0), false, ());
|
||||
// TEST_EQUAL(p.isPacked(h1), false, ());
|
||||
// TEST_EQUAL(p.isPacked(h0), false, ());
|
||||
// TEST_EQUAL(p.isPacked(h1), false, ());
|
||||
|
||||
TEST_EQUAL(p.isPacked(h2), true, ());
|
||||
|
||||
TEST_EQUAL(i, 7, ("Handlers priorities doesn't work"));
|
||||
TEST_NOT_EQUAL( i, 12, ("Handlers priorities doesn't work"));
|
||||
TEST_NOT_EQUAL(i, 12, ("Handlers priorities doesn't work"));
|
||||
|
||||
m2::RectU r2 = p.find(h2).second;
|
||||
|
||||
@@ -55,53 +55,23 @@ UNIT_TEST(PackerTest_HasRoom_Sequence)
|
||||
{
|
||||
m2::Packer p(20, 20);
|
||||
|
||||
m2::PointU pts[] = {
|
||||
m2::PointU(10, 10),
|
||||
m2::PointU(11, 3),
|
||||
m2::PointU(5, 5),
|
||||
m2::PointU(5, 5)
|
||||
};
|
||||
m2::PointU pts[] = {m2::PointU(10, 10), m2::PointU(11, 3), m2::PointU(5, 5), m2::PointU(5, 5)};
|
||||
|
||||
TEST(p.hasRoom(pts, sizeof(pts) / sizeof(m2::PointU)), ());
|
||||
|
||||
m2::PointU pts1[] = {
|
||||
m2::PointU(10, 10),
|
||||
m2::PointU(11, 3),
|
||||
m2::PointU(5, 5),
|
||||
m2::PointU(5, 5),
|
||||
m2::PointU(16, 5)
|
||||
};
|
||||
m2::PointU pts1[] = {m2::PointU(10, 10), m2::PointU(11, 3), m2::PointU(5, 5), m2::PointU(5, 5), m2::PointU(16, 5)};
|
||||
|
||||
TEST(!p.hasRoom(pts1, sizeof(pts1) / sizeof(m2::PointU)), ());
|
||||
|
||||
m2::PointU pts2[] = {
|
||||
m2::PointU(10, 10),
|
||||
m2::PointU(11, 3),
|
||||
m2::PointU(5, 5),
|
||||
m2::PointU(5, 5),
|
||||
m2::PointU(10, 6)
|
||||
};
|
||||
m2::PointU pts2[] = {m2::PointU(10, 10), m2::PointU(11, 3), m2::PointU(5, 5), m2::PointU(5, 5), m2::PointU(10, 6)};
|
||||
|
||||
TEST(!p.hasRoom(pts2, sizeof(pts2) / sizeof(m2::PointU)), ());
|
||||
|
||||
m2::PointU pts3[] = {
|
||||
m2::PointU(10, 10),
|
||||
m2::PointU(11, 3),
|
||||
m2::PointU(5, 5),
|
||||
m2::PointU(5, 5),
|
||||
m2::PointU(15, 5)
|
||||
};
|
||||
m2::PointU pts3[] = {m2::PointU(10, 10), m2::PointU(11, 3), m2::PointU(5, 5), m2::PointU(5, 5), m2::PointU(15, 5)};
|
||||
|
||||
TEST(p.hasRoom(pts3, sizeof(pts3) / sizeof(m2::PointU)), ());
|
||||
|
||||
m2::PointU pts4[] = {
|
||||
m2::PointU(10, 10),
|
||||
m2::PointU(11, 3),
|
||||
m2::PointU(5, 5),
|
||||
m2::PointU(5, 5),
|
||||
m2::PointU(16, 5)
|
||||
};
|
||||
m2::PointU pts4[] = {m2::PointU(10, 10), m2::PointU(11, 3), m2::PointU(5, 5), m2::PointU(5, 5), m2::PointU(16, 5)};
|
||||
|
||||
TEST(!p.hasRoom(pts4, sizeof(pts4) / sizeof(m2::PointU)), ());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user