mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
32 lines
460 B
C++
32 lines
460 B
C++
#include "testing/testing.hpp"
|
|
|
|
#include "drape/binding_info.hpp"
|
|
|
|
using namespace dp;
|
|
|
|
UNIT_TEST(BindingInfoIDTest)
|
|
{
|
|
{
|
|
BindingInfo info(1, 1);
|
|
TEST_EQUAL(info.GetID(), 1, ());
|
|
}
|
|
|
|
{
|
|
BindingInfo info(1);
|
|
TEST_EQUAL(info.GetID(), 0, ());
|
|
}
|
|
}
|
|
|
|
UNIT_TEST(DynamicHandlingTest)
|
|
{
|
|
{
|
|
BindingInfo info(1);
|
|
TEST_EQUAL(info.IsDynamic(), false, ());
|
|
}
|
|
|
|
{
|
|
BindingInfo info(1, 1);
|
|
TEST_EQUAL(info.IsDynamic(), true, ());
|
|
}
|
|
}
|