Why is it showing that the test failed, but the expected and actual values are the same? What is the problem?
#include "pch.h"
#include "CppUnitTest.h"
#include "../Lab 5_3/Lab 5_3.cpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest53
{
TEST_CLASS(UnitTest53)
{
public:
TEST_METHOD(TestMethod1)
{
double t, g;
g = 1;
t = p(p(1 - 2 * g) + pow(p(1 - p(1) + (p(2 * g) * p(2 * g))), 2));
Assert::AreEqual(t, 0.320469);
}
};
}