Le Philousophe
64e478ff4f
TEST: Fix base64 test on big-endian
...
The structure is loaded bytewise from Base64 data and should be compared
in a little endian fashion as the Base64 test pattern was generated on a LE machine.
Closes bug:15738.
2025-02-24 20:31:59 +01:00
Le Philousophe
064e0f35c6
TEST: Fix deprecation warning
2025-02-16 16:58:44 +01:00
Orgad Shaneh
cf8022dd27
JANITORIAL: Use default for span ctors
2025-01-03 09:30:16 +02:00
Orgad Shaneh
c9c2ffd88b
JANITORIAL: Require semicolon after COMMON_SPAN_TYPEDEFS macro use
2025-01-03 09:30:16 +02:00
athrxx
c9c061b84e
TEST: fix rendermodes test
2024-08-06 08:47:25 +03:00
elasota
8f9c2359e0
TEST: Add Array emplace and move semantic push_back tests
2024-08-05 09:57:40 +03:00
Cameron Cawley
08010fa185
COMMON: Return an iterator for List::insert
2024-07-30 13:29:18 +03:00
Cameron Cawley
421cb1f087
COMMON: Rename common/math.h to common/intrinsics.h
2024-07-27 14:00:48 +03:00
Cameron Cawley
89c57d29ef
COMMON: Move more maths functions into the Math namespace
2024-07-27 14:00:48 +03:00
Paul Gilbert
ec9869b253
TESTS: Move huffman.h into new compression/ subfolder
2024-07-15 02:56:12 +02:00
Paul Gilbert
3d71d8e08c
COMMON: Move huffman.h to common/compression/
2024-07-15 02:56:12 +02:00
Cameron Cawley
4147874314
TESTS: Add a test for erasing array ranges
2024-07-08 17:11:34 +01:00
Le Philousophe
a42f03643c
TESTS: Fix malloc/delete discrepancy
2024-06-23 16:06:16 +02:00
Le Philousophe
b930232e6d
COMMON: Punyencode path if it's already encoded.
...
This allows to have puny-encoded folders on disk and use them without
seeing them decoded by ScummVM like if they were encoded by us.
2024-06-15 02:07:38 +02:00
Le Philousophe
b8e08ff2a0
COMMON: Fix Path::baseName
...
When baseName was called with a base name path but escaped, unescape was
called with the escaping marker while this is not allowed.
2024-05-19 21:18:34 +02:00
Hubert Maier
ec863ad4ba
JANITORIAL: Fix lenght typo in algorithm.h
2024-05-18 13:52:31 +02:00
Eugene Sandulenko
6c0864dd81
TESTS: Fix Base64 test
2024-05-12 23:26:20 +02:00
Little Cat
267bfc9d03
COMMON: Base64 string validation.
2024-05-12 15:08:27 +02:00
Little Cat
6b80c4c581
COMMON: Add Base64 encoding/decoding
2024-05-12 15:08:27 +02:00
Le Philousophe
aceaf99816
COMMON: Fix bug #14892
...
When both paths were equal, suffix was incremented one char too much and
went off the string.
Add test cases to check for this.
2024-02-02 08:06:59 +01:00
Le Philousophe
5b4e26322e
COMMON: Don't fail when comparing empty strings
...
Add tests for this.
2024-01-14 14:06:41 +01:00
Cameron Cawley
0a4fec83c0
COMMON: Improve removing characters from strings
2024-01-08 23:39:22 +01:00
Cameron Cawley
a8183c7734
COMMON: Insert all characters in one go with String::insertString()
2024-01-08 23:39:22 +01:00
Cameron Cawley
4abc229268
COMMON: Unify implementations of String::replace()
2024-01-08 23:39:22 +01:00
Le Philousophe
eeba7ca153
COMMON: Add more path functions
2023-12-24 13:19:25 +01:00
Le Philousophe
be7130f296
COMMON: Rework path storage
2023-12-24 13:19:25 +01:00
Matthew Duggan
ce76f5b8cf
COMMON: Add basic tests for quicktime parser
2023-11-18 21:03:02 +01:00
Cameron Cawley
953772ba99
COMMON: Rename memset2/4/8 to memset16/32/64
2023-11-06 13:40:38 +02:00
Cameron Cawley
ac2d99ee9b
COMMON: Add variants of memset for 16-bit, 32-bit and 64-bit values
2023-11-06 13:40:38 +02:00
Eugene Sandulenko
3bce81ac70
TESTS: Added test for String::chop() method
2023-09-17 00:56:28 +02:00
Le Philousophe
3b4e8a4eea
TEST: Add CxxTest ValueTraits for String
...
This allows pretty printing them when there is an assertion failure
2023-09-02 11:42:29 +02:00
Le Philousophe
f41cf652eb
TEST: Fix warnings
2023-08-30 13:41:34 +02:00
Le Philousophe
509043aa92
TEST: Fix warning about signedness
2023-08-30 13:41:19 +02:00
Le Philousophe
f34bef6840
COMMON: Add normalization to Path class
2023-07-09 21:41:58 +02:00
grisenti
661e9373e3
TEST: Add tests for Common::upperBound
2023-06-01 23:07:41 +02:00
grisenti
1a696c1d6f
TEST: Add tests for Common::lowerBound
2023-06-01 23:06:39 +02:00
hax0kartik
4924a35540
TEST: Add more testcases for Common::remove()
2023-06-01 16:32:03 +02:00
hax0kartik
698bb261d1
COMMON: Add remove() to algorithm
2023-06-01 16:32:03 +02:00
Eugene Sandulenko
0f3424be05
TESTS: Rename clashing global variables
2023-05-15 14:32:29 +02:00
elasota
f30ab9b70f
TEST: Add test for comment prefixed by whitespace.
2023-05-11 00:22:14 +03:00
hax0kartik
0c9e17c57c
TESTS: Add U32String::replace() tests
2023-02-27 22:01:13 +01:00
D G Turner
de16ed814b
TEST: Fix Misleading Indentation GCC Compiler Warnings in Common::Crc tests
2023-02-20 01:49:57 +00:00
Matthew Duggan
c53b42311d
COMMON: Fix path split+join combinations, add tests for same
...
This resolves multiple scenarios where a path ends up with a trailing
separator.
2022-12-31 17:57:07 +09:00
Cameron Cawley
4002c7bdde
COMMON: Add a version of Common::Array::resize with a fill value
2022-12-19 14:33:07 +02:00
Cameron Cawley
a55361b65d
COMMON: Add Common::Array::swap()
2022-12-18 23:36:09 +02:00
Cameron Cawley
28d7b361ea
COMMON: Move more file format code into common/formats
2022-12-11 22:33:23 +01:00
Cameron Cawley
0581301b24
COMMON: Move huffman.h back out of the compression directory
2022-12-11 22:33:23 +01:00
Eugene Sandulenko
fb7095f5a4
COMMON: Move all compression-related files to a separate directory
2022-12-01 11:53:02 +01:00
Vladimir Serbinenko
357249fb5a
COMMON: Split slow and fast CRC implementation
...
They have almost nothing in common. And we probably want to kill slow
implementation anyway now that we have tests
2022-11-29 01:05:31 +01:00
Vladimir Serbinenko
05f1a0df51
COMMON: Remove the need for most reflecting when initing reflected table
...
Instead reflect the polynomial and change the shifts. Also removes the
need for explicit init.
This makes our crc more similar to its standard implementation
2022-11-29 01:05:31 +01:00