mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
Use user-defined literal for k, m, and g (powers of 1024)
This commit is contained in:
parent
8ba9b04747
commit
318c804504
99 changed files with 482 additions and 453 deletions
|
@ -33,7 +33,7 @@ void MessageDigestHelperTest::testDigestDiskWriter() {
|
|||
CPPUNIT_ASSERT_EQUAL(std::string("608cabc0f2fa18c260cafd974516865c772363d5"),
|
||||
util::toHex(message_digest::digest
|
||||
(MessageDigest::sha1().get(),
|
||||
diskio, 0, 4096)));
|
||||
diskio, 0, 4_k)));
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("7a4a9ae537ebbbb826b1060e704490ad0f365ead"),
|
||||
util::toHex(message_digest::digest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue