Skip to content

Commit 1fffca9

Browse files
committed
test vec4::flip with 255/127
1 parent 5c4d3ab commit 1fffca9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/testgeom.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,6 +2089,13 @@ namespace
20892089
v1.flip();
20902090
assert(v1 == vec4<uchar>(10,10,10,10));
20912091
}
2092+
{
2093+
vec4<uchar> v1(255,255,255,255);
2094+
v1.flip();
2095+
assert(v1 == vec4<uchar>(127,127,127,127));
2096+
v1.flip();
2097+
assert(v1 == vec4<uchar>(255,255,255,255));
2098+
}
20922099
}
20932100

20942101
void test_vec4_avg()

0 commit comments

Comments
 (0)