Frederik Carlier
081f890be8
[NSData initWithBase64EncodedString]
: Fix decoding of an empty string
...
Don't call `NSZoneRealloc` with a length of 0, but free the zone and return an empty `NSData` buffer instead.
2023-04-06 21:54:46 +00:00
Hugo Melder
8361596447
Add START_SET and END_SET to NSData/additions.m unit test
2022-08-09 12:05:12 +02:00
Hugo Melder
52b8752776
Check for nil in NSData Test
2022-08-04 17:05:55 +02:00
Mads Marquart
9684c9fda1
Add test to ensure that NSData assigns bytes
and length
...
Specifically on initWithBytesNoCopy:length:deallocator:
2021-10-29 10:17:39 +02:00
Frederik Seiffert
852ec7be7d
Tests: skip NSData gzip tests without zlib
2021-08-08 17:27:40 +02:00
Adam Fox
0b69d88ee2
Implementation of [NSData rangeOfData:options:range], adapted from [NSString rangeOfString:options:range].
2020-10-12 12:22:00 -06:00
Niels Grewe
c2be055c3e
Add [NSData initWithBytesNoCopy:length:deallocator:]
...
This new initializer allows customising the deallocation behaviour
through user-supplied blocks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40035 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:01:11 +00:00
Richard Frith-MacDonald
8650e4cb9e
test unknown character at end of input
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39337 72102866-910b-0410-8b05-ffd578937521
2016-02-04 22:29:22 +00:00
Richard Frith-MacDonald
9ea39120ab
another test for Riccardo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39336 72102866-910b-0410-8b05-ffd578937521
2016-02-04 16:02:49 +00:00
Richard Frith-MacDonald
226220f77a
gzip support
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38899 72102866-910b-0410-8b05-ffd578937521
2015-08-17 16:18:00 +00:00
Richard Frith-MacDonald
9777009686
fixup to ignore newlines
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38638 72102866-910b-0410-8b05-ffd578937521
2015-06-15 09:26:52 +00:00
Riccardo Mottola
a01bcde2fd
some base64 tests
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38635 72102866-910b-0410-8b05-ffd578937521
2015-06-14 17:34:18 +00:00
Richard Frith-MacDonald
8418d1f6eb
padding tests
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38603 72102866-910b-0410-8b05-ffd578937521
2015-06-08 07:45:14 +00:00
Richard Frith-MacDonald
a70eea58a8
add a couple more tests
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38601 72102866-910b-0410-8b05-ffd578937521
2015-06-08 06:26:39 +00:00
Richard Frith-MacDonald
9958374c34
first try
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38598 72102866-910b-0410-8b05-ffd578937521
2015-06-04 09:10:50 +00:00
Richard Frith-MacDonald
e936696293
base64 encoding
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38597 72102866-910b-0410-8b05-ffd578937521
2015-06-04 08:42:20 +00:00
Richard Frith-MacDonald
a8a0d68da8
add some keyed coding tests
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36424 72102866-910b-0410-8b05-ffd578937521
2013-03-25 11:05:32 +00:00
Fred Kiefer
6dfb591252
Remove warnings generated by tests.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33686 72102866-910b-0410-8b05-ffd578937521
2011-08-03 08:41:26 +00:00
Richard Frith-MacDonald
e6dc5a58b6
Important change to the START_SET and END_SET macros to stop their use
...
being confusing. They now both take a simple C-string argument which
names the set, and the macros check that each end matches a start of
the same name. Since tis means that a START_SET no longer takes an
argument sayng whether or notthe set is to be skipped, we now have a
SKIP macro to be used inside a set to skip to the end of it. This
is actually more versatile as we can have multiple SKIP macros in the
same set, each providing a different reason for the set being skipped.
Also removed a few obsolete/unused functions and macros.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32355 72102866-910b-0410-8b05-ffd578937521
2011-02-24 16:26:01 +00:00
Richard Frith-MacDonald
9f593f6b8e
Add TestInfo markers
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32335 72102866-910b-0410-8b05-ffd578937521
2011-02-23 18:34:39 +00:00
Richard Frith-MacDonald
0e02133729
import testsuite
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32187 72102866-910b-0410-8b05-ffd578937521
2011-02-16 08:21:17 +00:00