mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
31
libs/drape/drape_tests/bingind_info_tests.cpp
Normal file
31
libs/drape/drape_tests/bingind_info_tests.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#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, ());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user