Mercurial > irccd
diff tests/js-logger/main.cpp @ 111:1ed760f6e0c6
Irccd: new brace styles, #487
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Apr 2016 21:37:09 +0200 |
parents | 378fdc2c7b56 |
children | 28080933bac6 |
line wrap: on
line diff
--- a/tests/js-logger/main.cpp Wed Apr 27 18:53:30 2016 +0200 +++ b/tests/js-logger/main.cpp Wed Apr 27 21:37:09 2016 +0200 @@ -62,8 +62,9 @@ try { duk::putGlobal(ctx, "\xff""\xff""name", "test"); - if (duk::pevalString(ctx, "Irccd.Logger.info(\"hello!\");") != 0) + if (duk::pevalString(ctx, "Irccd.Logger.info(\"hello!\");") != 0) { throw duk::error(ctx, -1); + } ASSERT_EQ("plugin test: hello!", lineInfo); } catch (const std::exception &ex) { @@ -81,8 +82,9 @@ try { duk::putGlobal(ctx, "\xff""\xff""name", "test"); - if (duk::pevalString(ctx, "Irccd.Logger.warning(\"FAIL!\");") != 0) + if (duk::pevalString(ctx, "Irccd.Logger.warning(\"FAIL!\");") != 0) { throw duk::error(ctx, -1); + } ASSERT_EQ("plugin test: FAIL!", lineWarning); } catch (const std::exception &ex) { @@ -102,8 +104,9 @@ try { duk::putGlobal(ctx, "\xff""\xff""name", "test"); - if (duk::pevalString(ctx, "Irccd.Logger.debug(\"starting\");") != 0) + if (duk::pevalString(ctx, "Irccd.Logger.debug(\"starting\");") != 0) { throw duk::error(ctx, -1); + } ASSERT_EQ("plugin test: starting", lineDebug); } catch (const std::exception &ex) {