mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-14 06:05:26 +00:00
6d2d7fbf50
* Dev: add simple C binding for iOS and Android projects * System: add ci script
18 lines
413 B
C++
18 lines
413 B
C++
|
|
#include "protocol.h"
|
|
#include "gtest/gtest.h"
|
|
|
|
namespace {
|
|
|
|
TEST(ProtocolTest, SuccessfulCommand) {
|
|
|
|
EXPECT_STREQ(executeCommand("Test1"), "> Test1\nSuccessful");
|
|
EXPECT_STREQ(executeCommand("Test2"), "> Test2\nSuccessful");
|
|
EXPECT_STREQ(executeCommand("Test3"), "> Test3\nSuccessful");
|
|
}
|
|
|
|
TEST(ProtocolTest, NullCommand) {
|
|
EXPECT_STREQ(executeCommand(nullptr), "> \nFailed");
|
|
}
|
|
|
|
} // namespace
|