From 6c4403f6bb5c651d579e9a9055fb80144f4fea99 Mon Sep 17 00:00:00 2001 From: William Martin Date: Mon, 18 Jul 2011 18:36:12 +0100 Subject: [PATCH] fixed tests --- test/nets/NetFactoryTest.cpp | 2 +- test/nets/NeuronFactoryTest.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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())); } }