Files
comaps/libs/drape/drape_tests/bingind_info_tests.cpp
Alexander Borsuk 76ffc99abd New cpp folder structure
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-14 20:52:04 +07:00

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, ());
}
}