Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54ff5c0

Browse files
committed
Extended bitext test.
1 parentf8848a3 commit54ff5c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/tests/bitext-test.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ TEST(TestBitExt, FullTest)
1919
expect_eq(ret, cmp[val]);
2020
}
2121

22-
staticconstuint8_t val2[] {126,127,128,129};
23-
staticconstint32_t cmp2[] {126,127, -128, -127};
22+
staticconstuint8_t val2[] {126,127,128,129,255,0,1};
23+
staticconstint32_t cmp2[] {126,127, -128, -127, -1,0,1};
2424

25-
for (uint8_t i =0; i <4; i++)
25+
for (uint8_t i =0; i <7; i++)
2626
{
2727
auto ret = bitext<int32_t,uint32_t>(val2[i],8);
2828
expect_eq(ret, cmp2[i]);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp