ladybird/Tests
Sam Atkins 7e98c8eaf6 AK+Tests: Fix StringUtils::contains() being confused by repeating text
Previously, case-insensitively searching the haystack "Go Go Back" for
the needle "Go Back" would return false:

1. Match the first three characters. "Go ".
2. Notice that 'G' and 'B' don't match.
3. Skip ahead 3 characters, plus 1 for the outer for-loop.
4. Now, the haystack is effectively "o Back", so the match fails.

Reducing the skip by 1 fixes this issue. I'm not 100% convinced this
fixes all cases, but I haven't been able to find any cases where it
doesn't work now. :^)
2022-03-18 23:51:56 +00:00
..
AK AK+Tests: Fix StringUtils::contains() being confused by repeating text 2022-03-18 23:51:56 +00:00
Kernel Kernel: Add support for SA_SIGINFO 2022-03-04 20:07:05 +01:00
LibC LibC: Set saved_str to null in strtok_r if no tokens were found 2022-03-08 23:30:47 +01:00
LibCompress Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
LibCore LibCore+Tests: Add SeekableStream::truncate() 2022-02-16 19:49:41 -05:00
LibCpp Tests: Port test-cpp-preprocessor to Core::Stream 2022-03-10 12:04:22 -05:00
LibCrypto LibCrypto: Implement the SECP256r1 elliptic curve 2022-03-18 07:56:47 +03:30
LibEDID LibEDID: Fix handling extension maps 2022-01-24 19:29:06 +00:00
LibELF LibELF: Fix dynamic linking of dlopen()-ed libs 2021-10-06 12:33:21 +02:00
LibGfx Everywhere: Fully qualify font names by including their slope 2022-02-01 10:06:26 +01:00
LibGL Tests: Add a simple LibGL render-test 2021-11-29 23:17:05 +03:30
LibIMAP Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
LibJS LibTest: Provide detailed per-file JSON output with --per-file 2022-03-16 15:44:52 +00:00
LibM Tests: Add floor and ceil tests to test-math 2022-01-02 12:44:31 +03:30
LibMarkdown Tests: Port TestCommonmark to Core::Stream 2022-03-10 12:04:22 -05:00
LibPDF LibPDF: Propagate errors in Parser and Document 2022-03-07 10:53:57 +01:00
LibPthread LibPthread: Add first test cases for RWlock 2021-09-28 18:36:20 +03:30
LibRegex LibRegex: Make codegen+optimisation for alternatives much faster 2022-02-20 11:53:59 +01:00
LibSQL LibSQL: Convert binary SQL operations to be fallible 2022-02-13 21:30:38 +00:00
LibTest LibTest: Add EXPECT_NO_CRASH 2021-12-19 14:22:06 -08:00
LibThreading Tests: Disable LibThreading detach tests for now 2021-10-06 19:21:35 +02:00
LibTimeZone Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2022-01-31 18:23:22 +00:00
LibTLS LibCore+Everywhere: Return ErrorOr from ConfigFile factory methods 2022-02-16 19:49:41 -05:00
LibUnicode Tests: Add Unicode tests for CharacterType block properties 2022-02-15 10:13:19 -05:00
LibWasm Tests: Port test-wasm to Core::Stream 2022-03-10 12:04:22 -05:00
LibWeb Tests: Port TestHTMLTokenizer to Core::Stream 2022-03-10 12:04:22 -05:00
Spreadsheet LibJS: Add infallible variant of VM::push_execution_context() 2022-03-18 01:12:12 +01:00
UserspaceEmulator Tests: Remove all file(GLOB) from CMakeLists in Tests 2021-09-02 09:08:23 +02:00
CMakeLists.txt LibTest+Spreadsheet: Add some basic spreadsheet runtime behaviour tests 2022-02-23 03:17:12 +03:30