serenity/AK/Tests
Ben Wiederhake 0944f56181 AK: Fix human_readable_size corner cases
In particular: consistent rounding and extreme values.

Before, rounding was something like 'away from 0.999...', which led to
surprising corner cases in which the value was rounded up.

Now, rounding is always 'down'.
This even works for 0xffffffff, and also for 0xffffffffffffffffULL on 64-bit.
2020-08-23 11:24:55 +02:00
..
4chan_catalog.json AK: Add a benchmark for parsing 4chan catalog JSON 2019-08-04 11:57:32 +02:00
CMakeLists.txt Build: Fix cmake test runner, so it knows when tests fail 2020-05-26 13:38:20 +02:00
test.frm AK: Fix broken symlink used by JSON test 2020-08-06 00:05:52 +02:00
TestAtomic.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
TestBase64.cpp AK: Change the signature of AK::encode_base64() to use Span. 2020-07-27 19:58:09 +02:00
TestBinarySearch.cpp AK: Fix overflow and mixed-signedness issues in binary_search() (#2961) 2020-08-02 21:10:35 +02:00
TestBitmap.cpp AK: Fix Bitmap not finding unset ranges at the end of the map 2020-05-06 22:28:23 +02:00
TestByteBuffer.cpp AK: Prevent confusing silent misuse of ByteBuffer 2020-08-22 17:18:14 +02:00
TestCircularDeque.cpp AK: Fix all the warnings in the AK tests 2020-03-06 11:22:23 +01:00
TestCircularQueue.cpp AK: Move include <AK/TestSuite.h> to the top. 2020-08-22 10:46:56 +02:00
TestDistinctNumeric.cpp AK: Implement and test DistinctNumeric class 2020-08-10 11:51:45 +02:00
TestFixedArray.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
TestHashMap.cpp AK: Remove test case that doesn't test anything. 2020-08-22 10:46:56 +02:00
TestJSON.cpp AK: Add test case for duplicate JsonObject keys 2020-08-10 14:48:45 +02:00
TestLexicalPath.cpp AK: Remove relative_paths test from TestLexicalPath 2020-08-02 20:48:37 +02:00
TestNonnullRefPtr.cpp AK: Use unsigned int for refcount 2020-06-12 16:08:45 +02:00
TestNumberFormat.cpp AK: Fix human_readable_size corner cases 2020-08-23 11:24:55 +02:00
TestOptional.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
TestQueue.cpp AK: Make string-to-number conversion helpers return Optional 2020-06-12 21:28:55 +02:00
TestRefPtr.cpp AK: Use unsigned int for refcount 2020-06-12 16:08:45 +02:00
TestSpan.cpp AK: Rename Tests/Span.cpp to Tests/TestSpan.cpp. 2020-08-06 10:33:16 +02:00
TestStream.cpp LibCompress: Turn the DEFLATE implementation into a stream. 2020-08-20 16:28:31 +02:00
TestString.cpp AK: Add (more) tests for String(View)::split* 2020-07-30 18:47:41 +02:00
TestStringUtils.cpp AK: Fix StringUtils tests to actually observe return value. 2020-08-05 12:18:54 +02:00
TestStringView.cpp AK: Add (more) tests for String(View)::split* 2020-07-30 18:47:41 +02:00
TestURL.cpp AK: Make sure URL retains trailing slash if present in complete_url 2020-05-17 16:35:42 +02:00
TestUtf8.cpp Unicode: Try s/codepoint/code_point/g again 2020-08-05 22:33:42 +02:00
TestVector.cpp AK: Fix all the warnings in the AK tests 2020-03-06 11:22:23 +01:00
TestWeakPtr.cpp Build: FreeBSD support 2020-05-16 11:01:14 +02:00