summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-26 21:55:22 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-26 22:43:52 +0300
commite443619d5e77a8d63c23dcf0a418135bc6c1d174 (patch)
tree07a9fa20cc73c98dc683492dd4592d451425af60 /src/gui/widgets
parent1145dfe8011aa21690c1f9e34e701da3b9b29cd6 (diff)
downloadmanaverse-e443619d5e77a8d63c23dcf0a418135bc6c1d174.tar.gz
manaverse-e443619d5e77a8d63c23dcf0a418135bc6c1d174.tar.bz2
manaverse-e443619d5e77a8d63c23dcf0a418135bc6c1d174.tar.xz
manaverse-e443619d5e77a8d63c23dcf0a418135bc6c1d174.zip
Convert tests for browserbox into catch format.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/browserbox_unittest.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc
index da004445a..13ecd9ce4 100644
--- a/src/gui/widgets/browserbox_unittest.cc
+++ b/src/gui/widgets/browserbox_unittest.cc
@@ -20,6 +20,7 @@
#include "logger.h"
+#include "catch.hpp"
#include "client.h"
#include "gui/fonts/font.h"
@@ -28,15 +29,13 @@
#include "resources/sdlimagehelper.h"
-#include "gtest/gtest.h"
-
#include <physfs.h>
#include "debug.h"
extern const char *dirSeparator;
-TEST(browserbox, test1)
+TEST_CASE("BrowserBox tests", "browserbox")
{
PHYSFS_init("manaplus");
dirSeparator = "/";
@@ -50,7 +49,7 @@ TEST(browserbox, test1)
box->setWidth(100);
std::string row = "test";
box->addRow(row);
- EXPECT_TRUE(box->hasRows());
+ REQUIRE(box->hasRows() == true);
box->clearRows();
row = "@@";
box->addRow(row);