Skip to content
Snippets Groups Projects
Commit c21c1873 authored by Christian Engwer's avatar Christian Engwer
Browse files

scalar FieldVectors should behave as scalars, thus, add a test for

comparison operators.

[[Imported from SVN: r6169]]
parent 24d47a98
Branches
Tags
No related merge requests found
......@@ -84,7 +84,9 @@ public:
a = v;
b = (v == a);
b = (v != a);
b = (a == v);
b = (a != v);
a = v + a;
a = v - a;
......@@ -112,6 +114,21 @@ public:
v += a;
v *= a;
v /= a;
b = (v<a);
b = (v<=a);
b = (v>=a);
b = (v>a);
b = (v<w);
b = (v<=w);
b = (v>=w);
b = (v>w);
b = (a<w);
b = (a<=w);
b = (a>=w);
b = (a>w);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment