[Runtime testing] Add example tests

This commit is contained in:
Alexander Shabalin
2020-08-20 14:26:21 +03:00
committed by Ilya Matveev
parent f606c59d5b
commit a452346385
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#include "gtest/gtest.h"
#include "Porting.h"
TEST(ArraysTest, GoodTest) {
konan::consolePrintf("I'm a good test\n");
EXPECT_EQ(true, true);
}
TEST(ArraysTest, BadTest) {
konan::consolePrintf("I'm a bad test\n");
EXPECT_EQ(true, false);
}
@@ -6,7 +6,7 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"
int main(int argc, char **argv) {
int main(int argc, char** argv) {
testing::InitGoogleMock(&argc, argv);
return RUN_ALL_TESTS();
}