"vscode:/vscode.git/clone" did not exist on "6d92959ad3642754d0f6de85388a922d33651578"
Commit d12838be authored by Paul's avatar Paul
Browse files

Add operation test

parent b452c7f6
#include <rtg/operation.hpp>
#include <sstream>
#include <string>
#include "test.hpp"
struct simple_operation
{
std::string name() const { return "simple"; }
rtg::shape compute_shape(std::vector<rtg::shape>) const { RTG_THROW("not computable"); }
rtg::argument compute(std::vector<rtg::argument>) const { RTG_THROW("not computable"); }
};
void operation_copy_test()
{
simple_operation s{};
rtg::operation op1 = s; // NOLINT
rtg::operation op2 = op1; // NOLINT
EXPECT(s.name() == op1.name());
EXPECT(op2.name() == op1.name());
}
int main()
{
operation_copy_test();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment