ladybird/AK/Tests
asynts 90536a1558 AK: Consider long and unsigned long as integral types.
Two things I hate about C++:

 1. 'int', 'signed int' and 'unsigned int' are two distinct types while
    'char, 'signed char' and 'unsigned char' are *three* distinct types.

    This is because 'signed int' is an alias for 'int' but 'signed char'
    can't be an alias for 'char' because on some weird systems 'char' is
    unsigned.

    One might think why not do it the other way around, make 'int' an
    alias for 'signed int' and 'char' an alias for whatever that is on
    the platform, or make 'char' signed on all platforms. But who am I
    to ask?

 2. 'unsigned long' and 'unsigned long long' are always different types,
    even if both are 64 bit numbers.

This commit fixes a few bugs that coming from this.

See Also: 1b3169f405.
2020-09-22 15:06:40 +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: 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 the signature of binary_search. 2020-08-26 21:07:53 +02:00
TestBitmap.cpp AK: Add Bitmap::find_one_anywhere and optimize Bitmap::find_first 2020-09-09 13:02:14 +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 AK: Fix all the warnings in the AK tests 2020-03-06 11:22:23 +01: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: Consider long and unsigned long as integral types. 2020-09-22 15:06:40 +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: 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
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
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 Build: FreeBSD support 2020-05-16 11:01:14 +02:00