ladybird/Tests/AK
Max Wipfli 14506e8f5e AK: Implement Utf8CodepointIterator::peek(size_t)
This adds a peek method for Utf8CodepointIterator, which enables it to
be used in some parsing cases where peeking is necessary.

peek(0) is equivalent to operator*, expect that peek() does not contain
any assertions and will just return an empty Optional<u32>.

This also implements a test case for iterating UTF-8.
2021-06-01 09:28:05 +02:00
..
CMakeLists.txt AK: Add tests for LEB128 decoder 2021-05-31 14:25:27 +04:30
test.frm Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAllOf.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAnyOf.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestArray.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAtomic.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBadge.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBase64.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBinaryHeap.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBinarySearch.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBitCast.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBitmap.cpp AK: Don't read past the end in BitmapView::count_in_range() 2021-05-16 21:58:14 +01:00
TestByteBuffer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestChecked.cpp Tests: Add tests for Checked<T>::div() overflow 2021-05-07 09:26:11 +02:00
TestCircularDeque.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestCircularDuplexStream.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestCircularQueue.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestComplex.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestDistinctNumeric.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestDoublyLinkedList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestEndian.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestEnumBits.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestFind.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestFormat.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestGenericLexer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHashFunctions.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHashMap.cpp Everywhere: Add missing includes for <AK/OwnPtr.h> 2021-05-19 21:36:57 +02:00
TestHashTable.cpp AK: Make HashTable::operator=(HashTable&&) clear the moved-from table 2021-05-30 14:34:32 +02:00
TestHex.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIndexSequence.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIntrusiveList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIntrusiveRedBlackTree.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIPv4Address.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestJSON.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestLEB128.cpp AK: Handle LEB128 encoded values that are too large for the result type 2021-05-31 14:25:27 +04:30
TestLexicalPath.cpp Tests: Add tests for LexicalPath dirname handling 2021-05-27 18:21:36 +04:30
TestMACAddress.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestMemMem.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestMemoryStream.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestNeverDestroyed.cpp Tests: Mark use-after-scope NeverDestroyed test NO_SANITIZE_ADDRESS 2021-05-14 08:34:00 +01:00
TestNonnullRefPtr.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestNumberFormat.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestOptional.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestQueue.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestQuickSort.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestRedBlackTree.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestRefPtr.cpp Tests: Fix use-after-free in TestRefPtr.self_observers 2021-05-14 08:34:00 +01:00
TestSinglyLinkedList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestSourceGenerator.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestSourceLocation.cpp AK+Userland: Use akaster@serenityos.org for my copyright headers 2021-05-30 14:35:34 +01:00
TestSpan.cpp AK: Implement Span::starts_with() 2021-05-07 11:46:53 +01:00
TestStack.cpp AK: Implement AK::Stack 2021-05-26 16:36:53 +04:30
TestString.cpp AK+Everywhere: Consolidate String::index_of() and String::find() 2021-05-24 11:59:18 +02:00
TestStringUtils.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestStringView.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTime.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTrie.cpp Tests: static vs non-static constexpr variables 2021-05-19 21:21:03 +01:00
TestTuple.cpp AK: Add a Tuple implementation 2021-05-11 14:09:17 +01:00
TestTypedTransfer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTypeTraits.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestURL.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestUtf8.cpp AK: Implement Utf8CodepointIterator::peek(size_t) 2021-06-01 09:28:05 +02:00
TestVariant.cpp AK: Fix Variant construction from lvalue references 2021-05-22 09:34:31 +02:00
TestVector.cpp AK: Added contains_in_range to Vector 2021-05-20 23:53:06 +02:00
TestWeakPtr.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00