ladybird/Tests/AK
Jonne Ransijn 75b482bbb9 AK: Fix "assignment from temporary" check of Optional::operator=
There was an existing check to ensure that `U` was an lvalue reference,
but when this check fails, overload resolution will just move right on
to the copy asignment operator, which will cause the temporary to be
assigned anyway.

Disallowing `Optional<T&>`s to be created from temporaries entirely
would be undesired, since existing code has valid reasons for creating
`Optional<T&>`s from temporaries, such as for function call arguments.

This fix explicitly deletes the `Optional::operator=(U&&)` operator,
so overload resolution stops.
2024-11-24 23:04:34 -07:00
..
CMakeLists.txt AK: Remove unused floating point conversion code 2024-10-08 19:02:51 +02:00
TestAKBindings.swift AK: Skip test for StringView's CxxSequence conformance for now 2024-11-15 10:51:45 -07:00
TestAllOf.cpp
TestAnyOf.cpp
TestArray.cpp AK: Conform SimpleIterator to the random access iterator requirements 2024-08-17 17:44:37 -06:00
TestAtomic.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestBadge.cpp
TestBase64.cpp AK: Add a Base64 decoder to decode into an existing buffer 2024-09-03 17:43:03 +02:00
TestBinaryHeap.cpp
TestBinarySearch.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestBitCast.cpp
TestBitmap.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestBitStream.cpp
TestBuiltinWrappers.cpp
TestByteBuffer.cpp
TestByteString.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestCharacterTypes.cpp
TestChecked.cpp
TestCircularBuffer.cpp
TestCircularQueue.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestDisjointChunks.cpp
TestDistinctNumeric.cpp
TestDoublyLinkedList.cpp
TestDuration.cpp
TestEndian.cpp
TestEnumBits.cpp
TestEnumerate.cpp
TestFind.cpp
TestFixedArray.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestFixedPoint.cpp
TestFloatingPointParsing.cpp Tests: Remove duplicated test for FloatingPointParsing 2024-11-06 09:22:44 +00:00
TestFlyString.cpp
TestFormat.cpp
TestGenericLexer.cpp
TestHashFunctions.cpp
TestHashMap.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestHashTable.cpp Meta: Update my email address everywhere 2024-11-01 12:14:53 +01:00
TestHex.cpp
TestIndexSequence.cpp
TestInsertionSort.cpp
TestIntegerMath.cpp
TestIntrusiveList.cpp
TestIntrusiveRedBlackTree.cpp
TestIPv4Address.cpp
TestIPv6Address.cpp
TestJSON.cpp AK: Make String::number() infallible 2024-10-14 20:47:35 +02:00
TestLEB128.cpp
TestLexicalPath.cpp AK: Make LexicalPath::relative_path() fallible 2024-11-09 12:42:27 -07:00
TestMemory.cpp
TestMemoryStream.cpp
TestNeverDestroyed.cpp
TestNonnullOwnPtr.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestNonnullRefPtr.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestNumberFormat.cpp
TestOptional.cpp AK: Fix "assignment from temporary" check of Optional::operator= 2024-11-24 23:04:34 -07:00
TestOptionParser.cpp
TestOwnPtr.cpp
TestPrint.cpp
TestQueue.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestQuickSelect.cpp
TestQuickSort.cpp
TestRedBlackTree.cpp
TestRefPtr.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestSegmentedVector.cpp
TestSIMD.cpp Meta: Update my email address everywhere 2024-11-01 12:14:53 +01:00
TestSinglyLinkedList.cpp
TestSourceGenerator.cpp
TestSourceLocation.cpp
TestSpan.cpp AK: Conform SimpleIterator to the random access iterator requirements 2024-08-17 17:44:37 -06:00
TestStack.cpp
TestStatistics.cpp
TestStdLibExtras.cpp
TestString.cpp AK+LibUnicode: Add a method to trim non-ASCII whitespace from a String 2024-11-03 20:42:46 -05:00
TestStringFloatingPointConversions.cpp AK: Define FloatingPointExponentialForm comparator in the AK namespace 2024-08-13 14:11:05 +02:00
TestStringUtils.cpp
TestStringView.cpp AK: Ensure empty StringViews all compare as equal 2024-11-15 23:18:29 +01:00
TestTrie.cpp
TestTuple.cpp
TestTypedTransfer.cpp
TestTypeTraits.cpp
TestUFixedBigInt.cpp
TestUtf8.cpp AK: Add Utf8View::for_each_split_view() method 2024-11-15 23:18:29 +01:00
TestUtf16.cpp AK: Add a method to compute UTF-16 length from a UTF-8 string 2024-07-31 05:55:34 -04:00
TestVariant.cpp
TestVector.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestWeakPtr.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00