[Runtime testing] Add example tests
This commit is contained in:
committed by
Ilya Matveev
parent
f606c59d5b
commit
a452346385
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user