Updated test files to work with gtest
This commit is contained in:
parent
e666c3f1d6
commit
0b35b5e9d6
11 changed files with 122 additions and 120 deletions
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
#include "catch2/catch.hpp"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "kompute/Kompute.hpp"
|
||||
|
||||
TEST_CASE("test_logistic_regression") {
|
||||
TEST(LogisticRegressionAlgorithm, TestMainLogisticRegression) {
|
||||
|
||||
uint32_t ITERATIONS = 100;
|
||||
|
||||
|
|
@ -71,9 +71,9 @@ TEST_CASE("test_logistic_regression") {
|
|||
// * wi < 0.01
|
||||
// * wj > 1.0
|
||||
// * b < 0
|
||||
REQUIRE(wIn->data()[0] < 0.01);
|
||||
REQUIRE(wIn->data()[1] > 1.0);
|
||||
REQUIRE(bIn->data()[0] < 0.0);
|
||||
EXPECT_LT(wIn->data()[0], 0.01);
|
||||
EXPECT_GT(wIn->data()[1], 1.0);
|
||||
EXPECT_LT(bIn->data()[0], 0.0);
|
||||
|
||||
//SPDLOG_DEBUG("Result wIn: {}, bIn: {}",
|
||||
// wIn->data(), bIn->data());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue