diff --git a/test/nets/NetFactoryTest.cpp b/test/nets/NetFactoryTest.cpp index 84549cb..e0c8656 100644 --- a/test/nets/NetFactoryTest.cpp +++ b/test/nets/NetFactoryTest.cpp @@ -44,6 +44,6 @@ namespace { auto_ptr net = createInstance(NET_TYPE_ORNET, size); EXPECT_TRUE(net.get()); EXPECT_EQ(size, net->getNoInputs()); - EXPECT_EQ(NET_TYPE_ORNET, net->getNetType()); + EXPECT_EQ(0, strcmp(NET_TYPE_ORNET, net->getNetType())); } } diff --git a/test/nets/NeuronFactoryTest.cpp b/test/nets/NeuronFactoryTest.cpp index 1c81cae..8b71e4e 100644 --- a/test/nets/NeuronFactoryTest.cpp +++ b/test/nets/NeuronFactoryTest.cpp @@ -57,7 +57,7 @@ namespace { size); EXPECT_TRUE(neuron.get()); EXPECT_EQ(size, neuron->getWeights()->getSize()); - EXPECT_EQ(NEURON_TYPE_BDN, neuron->getType()); + EXPECT_EQ(0, strcmp(NEURON_TYPE_BDN, neuron->getType())); } /* @@ -73,6 +73,6 @@ namespace { size); EXPECT_TRUE(bdn.get()); EXPECT_EQ(size, bdn->getWeights()->getSize()); - EXPECT_EQ(NEURON_TYPE_BDN, bdn->getType()); + EXPECT_EQ(0, strcmp(NEURON_TYPE_BDN, bdn->getType())); } }