aboutsummaryrefslogtreecommitdiff
path: root/po/pt_BR
Commit message (Collapse)AuthorAge
* Revert "Update Russian translation"Kahrl2014-12-13
| | | | | | | | This reverts commit e4e4324a30d6bcac5cc06c74e955e4941b14bd38. Conflicts: po/minetest.pot po/*/minetest.po
* Update po filesShadowNinja2014-12-12
|
* Translated using Weblate (Portuguese (Brazil))Frederico Guimarães2014-02-16
|
* Run updatepo.shPilzAdam2013-11-23
|
* Translated using Weblate (Portuguese (Brazil))Frederico Guimarães2013-10-08
|
* Translated using Weblate (Portuguese (Brazil))Frederico Guimarães2013-10-08
|
* Run updatepo.shIlya Zhuravlev2013-09-08
|
* Run util/updatepo.shPilzAdam2013-08-25
|
* Fix i18n of some strings.arsdragonfly2013-07-02
|
* Translated using Weblate (Portuguese (Brazil))Frederico Guimarães2013-06-01
|
* Translated using Weblate (Portuguese (Brazil))Frederico Guimarães2013-05-13
|
* Update po filesPilzAdam2013-05-13
|
* Translated using Weblate (Portuguese (Brazil))Frederico Guimarães2013-05-01
|
* Translation to Portuguese of Brazil for Minetesteduardojsm2013-04-22
*tsrc, scene::ISceneManager *smgr) {} }; class TestClientActiveObjectMgr : public TestBase { public: TestClientActiveObjectMgr() { TestManager::registerTestModule(this); } const char *getName() { return "TestClientActiveObjectMgr"; } void runTests(IGameDef *gamedef); void testFreeID(); void testRegisterObject(); void testRemoveObject(); }; static TestClientActiveObjectMgr g_test_instance; void TestClientActiveObjectMgr::runTests(IGameDef *gamedef) { TEST(testFreeID); TEST(testRegisterObject) TEST(testRemoveObject) } //////////////////////////////////////////////////////////////////////////////// void TestClientActiveObjectMgr::testFreeID() { client::ActiveObjectMgr caomgr; std::vector<u16> aoids; u16 aoid = caomgr.getFreeId(); // Ensure it's not the same id UASSERT(caomgr.getFreeId() != aoid); aoids.push_back(aoid); // Register basic objects, ensure we never found for (u8 i = 0; i < UINT8_MAX; i++) { // Register an object auto tcao = new TestClientActiveObject(); caomgr.registerObject(tcao); aoids.push_back(tcao->getId()); // Ensure next id is not in registered list UASSERT(std::find(aoids.begin(), aoids.end(), caomgr.getFreeId()) == aoids.end()); } caomgr.clear(); } void TestClientActiveObjectMgr::testRegisterObject() { client::ActiveObjectMgr caomgr; auto tcao = new TestClientActiveObject(); UASSERT(caomgr.registerObject(tcao)); u16 id = tcao->getId(); auto tcaoToCompare = caomgr.getActiveObject(id); UASSERT(tcaoToCompare->getId() == id); UASSERT(tcaoToCompare == tcao); tcao = new TestClientActiveObject(); UASSERT(caomgr.registerObject(tcao)); UASSERT(caomgr.getActiveObject(tcao->getId()) == tcao); UASSERT(caomgr.getActiveObject(tcao->getId()) != tcaoToCompare); caomgr.clear(); } void TestClientActiveObjectMgr::testRemoveObject() { client::ActiveObjectMgr caomgr; auto tcao = new TestClientActiveObject(); UASSERT(caomgr.registerObject(tcao)); u16 id = tcao->getId(); UASSERT(caomgr.getActiveObject(id) != nullptr) caomgr.removeObject(tcao->getId()); UASSERT(caomgr.getActiveObject(id) == nullptr) caomgr.clear(); }