ladybird/AK/Tests
asynts 7c2cd81edb AK+Format: Exclude prefix from width calculation.
When we write the format specifier '{:#08x}' we are asking for eight
significant digits, zero padding and the prefix '0x'.

However, previously we got only six significant digits because the
prefix counted towards the width. (The number '8' here is the total
width and not the number of significant digits.)

Both fmtlib and printf shared this behaviour. However, I am introducing
a special case here because when we do zero padding we really only care
about the digits and not the width.

Notice that zero padding is a special case anyways, because zero padding
goes after the prefix as opposed to any other padding which goes before
it.
2020-10-06 15:28:39 +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
TestArray.cpp AK: Add Array<T, Size> template. 2020-09-08 14:01:21 +02:00
TestAtomic.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02: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 the signature of binary_search. 2020-08-26 21:07:53 +02:00
TestBitmap.cpp Everywhere: Fix more typos 2020-10-03 12:36:49 +02:00
TestByteBuffer.cpp AK: Prevent confusing silent misuse of ByteBuffer 2020-08-22 17:18:14 +02:00
TestChecked.cpp Tests: Document 'missing' tests 2020-08-27 10:12:04 +02:00
TestCircularDeque.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestCircularDuplexStream.cpp LibCompress: Simplify logic in deflate implementation. 2020-09-06 12:54:45 +02: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
TestFormat.cpp AK+Format: Exclude prefix from width calculation. 2020-10-06 15:28:39 +02: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
TestMemoryStream.cpp AK: Re-add OutputMemoryStream for static buffers only. 2020-09-15 20:36:45 +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+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestQueue.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestRefPtr.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestSpan.cpp AK: Rename Tests/Span.cpp to Tests/TestSpan.cpp. 2020-08-06 10:33:16 +02:00
TestString.cpp AK: Add (more) tests for String(View)::split* 2020-07-30 18:47:41 +02:00
TestStringUtils.cpp Meta+AK: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
TestStringView.cpp AK: Add (more) tests for String(View)::split* 2020-07-30 18:47:41 +02:00
TestTypedTransfer.cpp AK: Moved TypedTransfer into it's own header. 2020-09-09 20:15:50 +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: Remove FixedArray class. 2020-09-08 14:01:21 +02:00
TestWeakPtr.cpp Applications+IRCClient: Use new format functions. 2020-09-23 21:45:28 +02:00