mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 17:30:27 +00:00
Update FormatBinary64 test
This commit is contained in:
parent
f0ea11c70f
commit
164ce41ed4
1 changed files with 4 additions and 4 deletions
|
@ -40,13 +40,13 @@ TEST(FormatBinary64, test2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatBinary64, test3) {
|
TEST(FormatBinary64, test3) {
|
||||||
EXPECT_EQ(3, FormatBinary64(buf, 1, 2) - buf);
|
EXPECT_EQ(4, FormatBinary64(buf, 1, 2) - buf);
|
||||||
EXPECT_STREQ("0b1", buf);
|
EXPECT_STREQ("0b01", buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatBinary64, test4) {
|
TEST(FormatBinary64, test4) {
|
||||||
EXPECT_EQ(1, FormatBinary64(buf, 1, 0) - buf);
|
EXPECT_EQ(2, FormatBinary64(buf, 1, 0) - buf);
|
||||||
EXPECT_STREQ("1", buf);
|
EXPECT_STREQ("01", buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(FormatBinary64, test5) {
|
TEST(FormatBinary64, test5) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue