/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
App.UnitTest/HumanoidTest.cpp
18 строк
535 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#include <boost/test/unit_test.hpp> #include "Humanoid/Humanoid.h" using namespace RBX; BOOST_AUTO_TEST_SUITE(HumanoidTest) BOOST_AUTO_TEST_CASE(SetVelocityBeforeHumanoidIsPutIntoWorld) { shared_ptr<Humanoid> humanoid = Creatable<Instance>::create<Humanoid>(); Vector3 direction(1,2,3); direction = direction.unit(); // assert that we can set the walk direction before creating current state humanoid->setWalkDirection(direction); BOOST_REQUIRE(humanoid->getWalkDirection().fuzzyEq(direction)); } BOOST_AUTO_TEST_SUITE_END()