Commit graph

333 commits

Author SHA1 Message Date
Richard Frith-MacDonald
8fb56a93b7 skip test if we can't expect it to run as root
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36462 72102866-910b-0410-8b05-ffd578937521
2013-04-03 21:54:43 +00:00
Richard Frith-MacDonald
dbf2cd01a0 fix entity parsing in quoted strings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36458 72102866-910b-0410-8b05-ffd578937521
2013-04-03 15:28:28 +00:00
Richard Frith-MacDonald
583cca2c8c add 64bit archive data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36438 72102866-910b-0410-8b05-ffd578937521
2013-03-26 10:26:16 +00:00
Richard Frith-MacDonald
88016e76c4 alter code to check 64bit data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36437 72102866-910b-0410-8b05-ffd578937521
2013-03-26 10:24:29 +00:00
Richard Frith-MacDonald
c3b5c2897a a few more tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36435 72102866-910b-0410-8b05-ffd578937521
2013-03-26 09:59:35 +00:00
Richard Frith-MacDonald
0602cf2514 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36433 72102866-910b-0410-8b05-ffd578937521
2013-03-26 06:00:15 +00:00
Richard Frith-MacDonald
8c973be76c test a few more methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36432 72102866-910b-0410-8b05-ffd578937521
2013-03-26 05:56:40 +00:00
Richard Frith-MacDonald
22e037c478 add tests for abbreviation of home directory with tilde
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36429 72102866-910b-0410-8b05-ffd578937521
2013-03-25 14:14:04 +00:00
Richard Frith-MacDonald
c940fe2773 fix keyed decoding of identity affine transform
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36425 72102866-910b-0410-8b05-ffd578937521
2013-03-25 11:29:55 +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
Richard Frith-MacDonald
4c7b5c5726 Set minimum days in first week so we number weeks in December 2012 from 0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36398 72102866-910b-0410-8b05-ffd578937521
2013-03-22 16:26:42 +00:00
Richard Frith-MacDonald
25a3815477 add calendar tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36390 72102866-910b-0410-8b05-ffd578937521
2013-03-20 17:08:00 +00:00
Richard Frith-MacDonald
c82fbb5426 add some set tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36374 72102866-910b-0410-8b05-ffd578937521
2013-03-17 12:58:51 +00:00
Fred Kiefer
146eac5be8 * Tests/base/NSLocale/general.m,
* Tests/base/NSTimeZone/use.m: Mark more tests that depend on
        locale setting as hopes.
        * Tests/base/GSXML/basic.m: Set the timezone of the GSXMLRPC to
        get the same date string in the output.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36371 72102866-910b-0410-8b05-ffd578937521
2013-03-16 17:40:56 +00:00
Sebastian Reitenbach
ee46fb66d7 remove snucked in header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36317 72102866-910b-0410-8b05-ffd578937521
2013-03-09 18:14:03 +00:00
Richard Frith-MacDonald
e15c981429 a few new methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36311 72102866-910b-0410-8b05-ffd578937521
2013-03-08 14:07:34 +00:00
Richard Frith-MacDonald
e81f5ee403 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36275 72102866-910b-0410-8b05-ffd578937521
2013-03-05 14:06:25 +00:00
Richard Frith-MacDonald
1a571ad37c a few comparison tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36274 72102866-910b-0410-8b05-ffd578937521
2013-03-05 13:42:37 +00:00
Richard Frith-MacDonald
825ae282a4 corrected tests to pass on OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36271 72102866-910b-0410-8b05-ffd578937521
2013-03-05 12:14:36 +00:00
Richard Frith-MacDonald
5c8261644a new test by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36270 72102866-910b-0410-8b05-ffd578937521
2013-03-05 11:51:14 +00:00
Richard Frith-MacDonald
7289d57447 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36209 72102866-910b-0410-8b05-ffd578937521
2013-02-28 17:01:38 +00:00
Richard Frith-MacDonald
75661de25e fix for overrun when searching backwards (spotted by Fred using valgrind)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36204 72102866-910b-0410-8b05-ffd578937521
2013-02-28 12:51:27 +00:00
Richard Frith-MacDonald
afb56f1506 a few more tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36151 72102866-910b-0410-8b05-ffd578937521
2013-02-16 08:11:35 +00:00
Richard Frith-MacDonald
ede3a6c241 add some tests from mystep
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36147 72102866-910b-0410-8b05-ffd578937521
2013-02-15 20:04:11 +00:00
Richard Frith-MacDonald
e6ac9d4929 add a couple of tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36145 72102866-910b-0410-8b05-ffd578937521
2013-02-15 17:13:31 +00:00
Richard Frith-MacDonald
1d582cabdb add a couple of substitution tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36143 72102866-910b-0410-8b05-ffd578937521
2013-02-15 09:59:26 +00:00
Richard Frith-MacDonald
925f2b3ebf add test for cookie field constants
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36142 72102866-910b-0410-8b05-ffd578937521
2013-02-15 09:45:46 +00:00
Richard Frith-MacDonald
f1e03247bd add some byte swapping tests based on mySTEP
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36141 72102866-910b-0410-8b05-ffd578937521
2013-02-15 09:35:45 +00:00
Richard Frith-MacDonald
b452f37141 add a few more tests derived from mystep
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36140 72102866-910b-0410-8b05-ffd578937521
2013-02-15 09:21:32 +00:00
Richard Frith-MacDonald
35e931398b add test for base and relative URLs with different schemes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36101 72102866-910b-0410-8b05-ffd578937521
2013-02-10 06:20:26 +00:00
Richard Frith-MacDonald
a75d344aac add test for relative data URL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36100 72102866-910b-0410-8b05-ffd578937521
2013-02-10 05:23:44 +00:00
Richard Frith-MacDonald
c5bb020a5b add test for Ludovic
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35974 72102866-910b-0410-8b05-ffd578937521
2013-01-14 17:46:30 +00:00
Richard Frith-MacDonald
5971ae426e fix error in final boundary of multipart
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35880 72102866-910b-0410-8b05-ffd578937521
2012-12-12 09:31:57 +00:00
Richard Frith-MacDonald
ac061d5976 add intersection of empty rects test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35753 72102866-910b-0410-8b05-ffd578937521
2012-10-28 06:35:05 +00:00
Eric Wasylishen
2f1b8f47c3 * Tests/base/NSArchiver/stringEncoding.m: add test for last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35698 72102866-910b-0410-8b05-ffd578937521
2012-10-16 03:45:45 +00:00
Richard Frith-MacDonald
cc42a0110d formatting/coding style fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35574 72102866-910b-0410-8b05-ffd578937521
2012-09-19 14:20:01 +00:00
Niels Grewe
f8fd11f3fd Completely overhaul how we do sorting in -base. GSSorting.h now defines an
interface that can be used for all sorting tasks in the library. The actual sort
algorithms to use are now plugable. Timsort is the new default sorting
algorithm, the existing algorithms, shellsort and quicksort, can still be
selected using a configure switch.

Also implement the new NSComparator (blocks) based sorting and insertion index
searching methods for NSMutableArray and NSArray.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35573 72102866-910b-0410-8b05-ffd578937521
2012-09-19 13:31:09 +00:00
Richard Frith-MacDonald
ae328505c2 add support for data:,xxx style URL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35568 72102866-910b-0410-8b05-ffd578937521
2012-09-16 07:39:18 +00:00
Fred Kiefer
9ce62100fe Add new CDATA XML test case based on code by John Duff <nico.bin@hotmail.fr>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35528 72102866-910b-0410-8b05-ffd578937521
2012-09-04 21:29:11 +00:00
Richard Frith-MacDonald
3000e9ec1c OSX compatibility tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35325 72102866-910b-0410-8b05-ffd578937521
2012-07-27 18:02:11 +00:00
Richard Frith-MacDonald
e6c15aef54 crude KVO setter for structs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35324 72102866-910b-0410-8b05-ffd578937521
2012-07-27 16:48:49 +00:00
Richard Frith-MacDonald
2b30f01d2d fix for bug #34815
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35272 72102866-910b-0410-8b05-ffd578937521
2012-07-09 05:22:03 +00:00
Richard Frith-MacDonald
d8922655c1 Error handling tweaks based on code/ideas by Sergey Golovin
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35266 72102866-910b-0410-8b05-ffd578937521
2012-07-08 15:50:58 +00:00
Richard Frith-MacDonald
3e1c3d35d4 reenable test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35264 72102866-910b-0410-8b05-ffd578937521
2012-07-08 14:43:02 +00:00
Fred Kiefer
6ebcdc0883 Use raise instead of @throw.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35108 72102866-910b-0410-8b05-ffd578937521
2012-04-23 20:24:32 +00:00
Fred Kiefer
3e8e98b4b2 Get new test to run with older compilers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35107 72102866-910b-0410-8b05-ffd578937521
2012-04-23 20:19:36 +00:00
David Chisnall
5e6e1ccde3 Fix a bug in the new autorelease pool implementation when pools are destroyed in the wrong order.
Test cast by Chris Armstrong!



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35105 72102866-910b-0410-8b05-ffd578937521
2012-04-23 12:47:09 +00:00
Fred Kiefer
9629278d59 * Source/NSXMLDocument.m:
* Source/NSXMLDTD.m:
* Source/NSXMLNode.m:
* Source/NSXMLDTDNode.m:
* Source/NSXMLElement.m: Remove compiler warnings for clang
reported by David Chisnall.
* Tests/base/NSAutoreleasePool/basic.m: Get to compile again
without -C99.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35043 72102866-910b-0410-8b05-ffd578937521
2012-04-06 22:27:55 +00:00
David Chisnall
3cb1b08b26 Support for collection subscripting (NSArray and NSDictionary).
Yes, the syntax is ugly, but no doubt people will start using it in June...



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35033 72102866-910b-0410-8b05-ffd578937521
2012-04-06 12:23:10 +00:00
David Chisnall
b9684ff5a7 Use the runtime's ARC autorelease pools if available.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35031 72102866-910b-0410-8b05-ffd578937521
2012-04-06 12:02:59 +00:00
Fred Kiefer
337118ee64 * Source/NSXMLNode.m (+_objectForNode:): Don't create a document
object for a private document.
* Tests/base/NSXMLNode/transfer.m: New code for test case
contributed by Doug Simons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35026 72102866-910b-0410-8b05-ffd578937521
2012-04-04 21:39:12 +00:00
Niels Grewe
fa47f6da10 Detect the presence of libdispatch and, if available, use it for collection
enumeration methods that take blocks as arguments. This allows us to implement
the NSEnumerationConcurrent option of those methods with minimal effort.

The searching methods on NSIndexSet and all the sorting methods are still
missing.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35010 72102866-910b-0410-8b05-ffd578937521
2012-03-27 17:05:19 +00:00
Niels Grewe
132de12a73 Add completion block support to NSOperation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34996 72102866-910b-0410-8b05-ffd578937521
2012-03-26 14:47:07 +00:00
Fred Kiefer
79647a337e * Source/NSXMLNode.m (-copyWithZone_): Use value 1 instead of 2
for deep copy. Bug found by Doug Simons <doug.simons@testplant.com>.
* Source/NSXMLNode.m (-rootDocument): Don't return the private
document.
* Source/NSXMLNode.m (-nextSibling, -previousSibling): Protect
against namspace nodes.
* Tests/base/NSXMLNode/transfer.m: New test case for problem
reported by Doug Simons.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34988 72102866-910b-0410-8b05-ffd578937521
2012-03-23 09:48:24 +00:00
Fred Kiefer
d2eaeafb2a * Source/NSXMLElement.m,
* Source/NSXMLNode.m: Fix memory leak for attribute private
documents found by valgrind.
* Tests/base/NSXMLNode/namespace.m: Use drain instead of
release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34976 72102866-910b-0410-8b05-ffd578937521
2012-03-22 17:33:09 +00:00
Fred Kiefer
7e995ff2a8 * Source/NSXMLDocument.m (-URI, -setURI:): Specific implementation.
* Source/NSXMLPrivate.h: Remove URI ivar.
* Source/NSXMLElement.m,
* Source/NSXMLNode.m: Full support for namespaces.
* Tests/base/NSXMLNode/namespace.m: Test code borrowed from
Google data project.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34972 72102866-910b-0410-8b05-ffd578937521
2012-03-22 09:34:54 +00:00
Niels Grewe
c6df5dc455 Implement a few blocks related enumeration methods on NSDictionary (with
unit tests).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34965 72102866-910b-0410-8b05-ffd578937521
2012-03-20 20:17:45 +00:00
Fred Kiefer
d3e3f4e17c * Source/NSXMLPrivate.h: Remvoe unused ivars.
* Source/NSXMLDocument.m: Get DTD from node and and validation
in init methods.
* Source/NSXMLDTD.m: Implement.
* Source/NSXMLNode.m: No children for attribute nodes.
* Tests/base/NSXMLNode/basic.m: Test empty attribute children


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34943 72102866-910b-0410-8b05-ffd578937521
2012-03-17 13:57:58 +00:00
Fred Kiefer
18c64eae4f * Source/NSXMLNode.m (-detach): Don't handle the namespace case.
* Source/NSXMLElement.m (-removeNamespaceForPrefix:): Implement.
* Tests/base/NSXMLNode/basic.m: Move tests from here ...
* Tests/base/NSXMLElement/basic.m: ... to here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34927 72102866-910b-0410-8b05-ffd578937521
2012-03-12 22:33:27 +00:00
Fred Kiefer
86330f01a7 * Source/NSXMLElement.m: Correct used namespace field.
* Source/NSXMLNode.m: Implement special handling for namespace
nodes.
* Tests/base/NSXMLNode/basic.m: Correct method name for
namespace node.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34926 72102866-910b-0410-8b05-ffd578937521
2012-03-12 19:50:51 +00:00
Fred Kiefer
87c3b97c1c * Source/NSXMLNode.m (-copyWithZone:): Don't set object value of
copy if it is nil.
* Source/NSXMLNode.m (+_objectForNode:): Use correct sub class
for decl nodes.
* Tests/base/NSXMLNode/basic.m: More tests.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34912 72102866-910b-0410-8b05-ffd578937521
2012-03-09 10:08:48 +00:00
Richard Frith-MacDonald
f633f6b2fc add NSURLConnection chunked test and tidy up a bit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34901 72102866-910b-0410-8b05-ffd578937521
2012-03-07 08:05:43 +00:00
Richard Frith-MacDonald
792193a555 Add chunked encding test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34899 72102866-910b-0410-8b05-ffd578937521
2012-03-07 07:30:06 +00:00
Fred Kiefer
9f1c97406d * Tests/base/NSXMLElement/attributes.m: Test for changed
exception.
* Tests/base/NSXMLNode/basic.m: More tests.
* Source/NSXMLNode.m: Rewrite object value handling.
* Source/NSXMLElement.m (-objectValue): Return @"" when the
value is nil.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34881 72102866-910b-0410-8b05-ffd578937521
2012-03-05 22:48:18 +00:00
Fred Kiefer
32678e3f42 * Source/NSXMLElement.m (-addAttribute:): Raise correct exception.
* Tests/base/NSXMLNode/children.m: Add test cases for attributes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34879 72102866-910b-0410-8b05-ffd578937521
2012-03-05 09:41:40 +00:00
Eric Wasylishen
b059c30066 * Tests/base/NSString/locale.m: Expand test of compare:
and rangeOfString:. Mark as hopeful for the moment. All pass
on Mac OS 10.7.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34878 72102866-910b-0410-8b05-ffd578937521
2012-03-05 07:08:46 +00:00
Richard Frith-MacDonald
fd35770c29 add simple chunked decoding test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34874 72102866-910b-0410-8b05-ffd578937521
2012-03-03 18:51:10 +00:00
Fred Kiefer
38483746b3 * Source/NSXMLNode.m: Remove all the extra reference handling code
and the special retain and release methods.
* Tests/base/NSXMLNode/basic.m,
* Tests/base/NSXMLNode/children.m: A few more test
cases. Validated on MacOSX 10.6.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34873 72102866-910b-0410-8b05-ffd578937521
2012-03-03 11:37:49 +00:00
Richard Frith-MacDonald
4296dba91e redo commit for minor bugfix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34872 72102866-910b-0410-8b05-ffd578937521
2012-03-03 09:19:41 +00:00
Eric Wasylishen
cd9e610a39 * Tests/base/NSString/locale.m: Add a simple test for locale sensitive
compare: and rangeOfString: methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34869 72102866-910b-0410-8b05-ffd578937521
2012-03-02 22:03:27 +00:00
Richard Frith-MacDonald
ea9c318c42 add substring test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34864 72102866-910b-0410-8b05-ffd578937521
2012-03-02 18:59:45 +00:00
Richard Frith-MacDonald
6f351c362b add some percent escape tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34860 72102866-910b-0410-8b05-ffd578937521
2012-03-02 08:55:27 +00:00
Richard Frith-MacDonald
2b26ef03fb add tests for replacing percent escapes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34859 72102866-910b-0410-8b05-ffd578937521
2012-03-02 08:13:49 +00:00
Gregory John Casamento
f02339adda * Source/NSXMLDocument.m
* Source/NSXMLDTD.m
	* Source/NSXMLDTDNode.m
	* Source/NSXMLElement.m
	* Source/NSXMLNode.m
	* Source/NSXMLPrivate.h: Reimplementation of all DOM classes based on
	libxml2.  Implementation of all methods using libxml2 functions.
	* Tests/base/NSXMLDocument/basic.m
	* Tests/base/NSXMLElement/attributes.m
	* Tests/base/NSXMLElement/children.m
	* Tests/base/NSXMLNode/basic.m
	* Tests/base/NSXMLNode/children.m
	* Tests/base/NSXMLNode/kinds.m: Changes to test for new functionality.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34789 72102866-910b-0410-8b05-ffd578937521
2012-02-20 03:40:15 +00:00
Richard Frith-MacDonald
548520671b Add placeholder for NSOrderedSet testing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34747 72102866-910b-0410-8b05-ffd578937521
2012-02-08 17:42:24 +00:00
Richard Frith-MacDonald
fc710f36cd add more URL checks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34698 72102866-910b-0410-8b05-ffd578937521
2012-02-02 17:00:07 +00:00
Richard Frith-MacDonald
b6497999a6 JSON fixups thanks to Lubomir Rintel <lubo.rintel@gooddata.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34681 72102866-910b-0410-8b05-ffd578937521
2012-01-31 16:32:40 +00:00
Richard Frith-MacDonald
253b5b760e improve encoding tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34680 72102866-910b-0410-8b05-ffd578937521
2012-01-31 10:37:13 +00:00
Richard Frith-MacDonald
2b605b9df5 make +initialize test a hope since it's not actually important
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34677 72102866-910b-0410-8b05-ffd578937521
2012-01-31 08:07:20 +00:00
Fred Kiefer
4c69dafed4 * Tests/base/NSURLRequest/basic.m: Remove two astray @ characters.
These were blocking the file from compiling with gcc 4.6



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34672 72102866-910b-0410-8b05-ffd578937521
2012-01-30 23:20:40 +00:00
Richard Frith-MacDonald
85463ec8a2 add tests for new mutable request
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34620 72102866-910b-0410-8b05-ffd578937521
2012-01-24 09:40:29 +00:00
Richard Frith-MacDonald
f339497d46 make test terminate on deadlock
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34461 72102866-910b-0410-8b05-ffd578937521
2012-01-08 16:10:46 +00:00
Richard Frith-MacDonald
ebc1b1a396 add thread safety test for initialize methods in different classes calling each other
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34460 72102866-910b-0410-8b05-ffd578937521
2012-01-08 15:57:43 +00:00
Richard Frith-MacDonald
6e979028e7 fix retain/release error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34455 72102866-910b-0410-8b05-ffd578937521
2012-01-07 07:54:28 +00:00
Richard Frith-MacDonald
346461313c check setting nil document root.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34454 72102866-910b-0410-8b05-ffd578937521
2012-01-07 07:26:18 +00:00
Richard Frith-MacDonald
407bac3a56 sheck setting children to nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34453 72102866-910b-0410-8b05-ffd578937521
2012-01-07 07:10:45 +00:00
Richard Frith-MacDonald
cbca285804 Add missed commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34452 72102866-910b-0410-8b05-ffd578937521
2012-01-07 07:02:14 +00:00
Richard Frith-MacDonald
626d75a2c5 simple tests to set root of document
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34443 72102866-910b-0410-8b05-ffd578937521
2012-01-06 13:56:46 +00:00
Richard Frith-MacDonald
078309e705 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34440 72102866-910b-0410-8b05-ffd578937521
2012-01-06 11:27:58 +00:00
Richard Frith-MacDonald
ef989c5d3b more child checks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34439 72102866-910b-0410-8b05-ffd578937521
2012-01-06 11:17:51 +00:00
Richard Frith-MacDonald
bb8dbe57a5 some basic child handling tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34438 72102866-910b-0410-8b05-ffd578937521
2012-01-06 11:01:44 +00:00
Richard Frith-MacDonald
49030b1dc7 some basic setter/getter tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34437 72102866-910b-0410-8b05-ffd578937521
2012-01-06 09:46:50 +00:00
Richard Frith-MacDonald
58678e6176 add basic equality tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34436 72102866-910b-0410-8b05-ffd578937521
2012-01-06 09:24:51 +00:00
Richard Frith-MacDonald
e1fff8cec4 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34426 72102866-910b-0410-8b05-ffd578937521
2012-01-05 20:46:51 +00:00
Richard Frith-MacDonald
545bc0f99c add trivial document tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34422 72102866-910b-0410-8b05-ffd578937521
2012-01-05 18:52:57 +00:00
Richard Frith-MacDonald
1eddd45685 64bit printf tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34400 72102866-910b-0410-8b05-ffd578937521
2012-01-03 14:47:12 +00:00
Gregory John Casamento
6c2cf89b6b 2012-01-02 02:26-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSXMLNode.m>: Minor correction. Move setName out of 
	private category.
	* Tests/base/NSXMLNode/children.m: Update test.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34385 72102866-910b-0410-8b05-ffd578937521
2012-01-02 07:27:56 +00:00
Gregory John Casamento
7b7b2a6f9d First cut at NSXMLDocument changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34371 72102866-910b-0410-8b05-ffd578937521
2011-12-30 21:40:12 +00:00
Richard Frith-MacDonald
b9695fe9f5 add tests for removal of a default directly and via -setObject:forKey:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34138 72102866-910b-0410-8b05-ffd578937521
2011-11-09 13:51:55 +00:00
Richard Frith-MacDonald
014c5ebc66 make base64 decoding more tolerant.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34128 72102866-910b-0410-8b05-ffd578937521
2011-11-07 08:15:00 +00:00
Fred Kiefer
f6a225bfcc * Tests/base/NSMutableString/basic.m: Add test for
replaceOccurrencesOfString:...range:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34080 72102866-910b-0410-8b05-ffd578937521
2011-10-28 12:21:14 +00:00
Richard Frith-MacDonald
d928b08ba5 fix method name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34077 72102866-910b-0410-8b05-ffd578937521
2011-10-27 11:58:32 +00:00
Richard Frith-MacDonald
3d1bddc7af check bom values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33985 72102866-910b-0410-8b05-ffd578937521
2011-10-14 12:58:52 +00:00
Richard Frith-MacDonald
ee4d1aef0f Tweaks to support UTF-8 literal string encoding supported by more recent
compilers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33972 72102866-910b-0410-8b05-ffd578937521
2011-10-12 14:28:44 +00:00
Richard Frith-MacDonald
f7280475ff fix to reture respnse for synchronous request.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33949 72102866-910b-0410-8b05-ffd578937521
2011-10-07 09:17:14 +00:00
Richard Frith-MacDonald
49c91de79d another nil arg test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33938 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:33:40 +00:00
Richard Frith-MacDonald
4335b7e995 another nil arg check
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33937 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:15:51 +00:00
Richard Frith-MacDonald
4000d7891e test for exception
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33936 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:05:03 +00:00
Richard Frith-MacDonald
afc6974925 Provisional IPv6 support added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33933 72102866-910b-0410-8b05-ffd578937521
2011-10-03 16:03:19 +00:00
Richard Frith-MacDonald
cbf54ac301 Add a few OSX compatibility methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33929 72102866-910b-0410-8b05-ffd578937521
2011-10-02 11:17:49 +00:00
Niels Grewe
377a757e54 Started working on NSXMLNode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33927 72102866-910b-0410-8b05-ffd578937521
2011-10-01 18:43:29 +00:00
Niels Grewe
b8ed8cedc2 Add test for child de-/re-attachment behaviour in NSXML.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33920 72102866-910b-0410-8b05-ffd578937521
2011-10-01 00:05:27 +00:00
Niels Grewe
ab9ae99954 Add some initial tests for NSXMLNode (will only pass on OS X, marked testHopeful for now).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33903 72102866-910b-0410-8b05-ffd578937521
2011-09-28 18:10:18 +00:00
Richard Frith-MacDonald
c3a395db37 Add test for +initialize being called whether or not it's implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33844 72102866-910b-0410-8b05-ffd578937521
2011-09-16 08:33:05 +00:00
Fred Kiefer
fbd9fb9855 iUse SKIP correctly by providing a test set around it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33785 72102866-910b-0410-8b05-ffd578937521
2011-08-25 09:07:41 +00:00
Fred Kiefer
fb48d7ab4d Don't run the initialize test if we cannot stop it with a signal.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33784 72102866-910b-0410-8b05-ffd578937521
2011-08-25 09:00:41 +00:00
Fred Kiefer
04e6ab22d9 Make test usable on MinGW
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33783 72102866-910b-0410-8b05-ffd578937521
2011-08-25 08:46:31 +00:00
Richard Frith-MacDonald
9331172345 improve mime tests for excess data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33737 72102866-910b-0410-8b05-ffd578937521
2011-08-15 08:59:24 +00:00
David Chisnall
15fad579c9 Fix the test on 64-bit (am I the first person to run this test on LP64?). NSTemporaryDirectory was not declared, so its return type was int, and so the object pointer was truncated.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33730 72102866-910b-0410-8b05-ffd578937521
2011-08-13 18:32:10 +00:00
David Chisnall
fa6f119996 Clean up NSRegularExpression, so that it compiles without warnings with or without ICU, but we don't pretend that we support things that we don't and silently return nonsense results to make debugging difficult for GNUstep users.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33688 72102866-910b-0410-8b05-ffd578937521
2011-08-03 12:04:27 +00:00
David Chisnall
682c9beb5b Make base do unintuitive and stupid things in the name of Apple compatibility (hopefully Apple will fix their implementation in 10.7.something...).
Fix some tests.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33687 72102866-910b-0410-8b05-ffd578937521
2011-08-03 09:04:12 +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
Fred Kiefer
b5d9750560 Small fixes on tests.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33681 72102866-910b-0410-8b05-ffd578937521
2011-08-02 08:52:15 +00:00
David Chisnall
87c717eaba Added some tests for round-trips through NSNumber.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33650 72102866-910b-0410-8b05-ffd578937521
2011-07-27 08:57:30 +00:00
David Chisnall
00259f1a7c Tweak the weak tests so that they should still work, even if -base was compiled
with something that doesn't do a very good job of optimising autorelease
operations away.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33644 72102866-910b-0410-8b05-ffd578937521
2011-07-26 20:12:32 +00:00
David Chisnall
9895dac736 Remove an NSLog() line I left in the test by mistake.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33638 72102866-910b-0410-8b05-ffd578937521
2011-07-26 18:42:13 +00:00
David Chisnall
c1cca9a336 Added NSJSONSerialization (10.7) implementation. The code path reading from an NSInputStream is not well tested - please try and break it!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33631 72102866-910b-0410-8b05-ffd578937521
2011-07-25 15:50:51 +00:00
David Chisnall
d2ea054c26 Lots of little fixes to make -base compile with -Werror (now builds without warnings).
Richard: I'm unsure about three of these, which were fixes in memset() calls in:
- NSConcreteMapTable.m
- NSConcreteHashTable.m
- Additions/NSData+GNUstepBase.m

Please can you check them?  I think they are intended to zero the entire object
(rather than the first word), but the lack of comments makes me unsure.

Most changes were just tweaks to variable types.  I've also removed some dead code from NSInvocation.  This was small group of things that were marked for internal use only, but not actually referenced in the code anywhere.

Other improvements:

- NSArray / NSDictionary fixed up to use the 10.7 (ARC-friendly) prototypes.
- getObjects:andKeys: implemented for NSDictionary (10.5 method)
- NSPointerArray and NSHashTable now properly support weak objects.
- Tests for weak objects in collections.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33621 72102866-910b-0410-8b05-ffd578937521
2011-07-24 13:09:22 +00:00
David Chisnall
bc37adfb0c Add support (and test) for weak keys and values in NSMapTable. This support should work in GC mode. It also works if the runtime supports ARC, even if the compiler does not use this support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33617 72102866-910b-0410-8b05-ffd578937521
2011-07-23 16:16:01 +00:00
David Chisnall
d9fda65728 Added NSRegularExpressionSearch (10.7) support to NSString.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33600 72102866-910b-0410-8b05-ffd578937521
2011-07-21 13:17:27 +00:00
David Chisnall
72b55444fb Added some tests for lazy allocated thread behaviour.
These show deviation from OS X behaviour (the first test passes by accident - it's actually doing the wrong thing in two different ways that cancel each other out).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33520 72102866-910b-0410-8b05-ffd578937521
2011-07-11 14:07:16 +00:00
David Chisnall
91b513bfa8 Added test for creating class / adding methods. Based on Wolfgang Lux' test example.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32997 72102866-910b-0410-8b05-ffd578937521
2011-05-07 09:50:42 +00:00
Richard Frith-MacDonald
8f17e19b0d tweak to handle concurrency failure better.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32974 72102866-910b-0410-8b05-ffd578937521
2011-05-03 19:39:08 +00:00
David Chisnall
2c900743bd Made initialize test abort if it deadlocks for too long.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32950 72102866-910b-0410-8b05-ffd578937521
2011-04-29 14:59:24 +00:00
David Chisnall
7446414424 On closer inspection, the runtimes / compilers were doing the right thing - the type encoding provided in Apple's documentation was wrong.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32945 72102866-910b-0410-8b05-ffd578937521
2011-04-29 11:11:37 +00:00
David Chisnall
cb845565ba Added test for property attribute encodings. These are based on the Apple documentation here:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtPropertyIntrospection.html

Several of the things in the documentation are wrong:

- The encoding of structures does not include the field names in property
  encodings.  This encoding format appears to only be used in ivars (yes, it is
  frustrating)

- Apple appears to encode long as q on LP64 platforms.  This is probably a
  compiler bug.

- The N flag is not set for non-atomic properties.  This appears to be a clang
  bug, since the non-atomic flag is not set in the AST - both the Mac and
  GNUstep runtimes generate the same wrong result.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32944 72102866-910b-0410-8b05-ffd578937521
2011-04-29 10:50:00 +00:00
David Chisnall
d17fe8eab0 Added test for correct behaviour of +initialize in a multithreaded environment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32912 72102866-910b-0410-8b05-ffd578937521
2011-04-20 09:41:12 +00:00
Richard Frith-MacDonald
b1745e7d9d Minor fixups for release ... mostly avoid failed testcases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32837 72102866-910b-0410-8b05-ffd578937521
2011-04-12 05:41:53 +00:00
Richard Frith-MacDonald
d3c38af54b Apply patch for bug #32899
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32794 72102866-910b-0410-8b05-ffd578937521
2011-04-07 05:09:08 +00:00
Wolfgang Lux
41bc49cedf Fix bogus byte swap code for big-endian hosts.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32785 72102866-910b-0410-8b05-ffd578937521
2011-04-05 18:47:06 +00:00
Richard Frith-MacDonald
92ac6e50d4 fix byte order error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32782 72102866-910b-0410-8b05-ffd578937521
2011-04-05 13:08:16 +00:00
Richard Frith-MacDonald
ee798647d7 fixup for signedness ... charValue always returns a signed char
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32777 72102866-910b-0410-8b05-ffd578937521
2011-04-04 16:35:20 +00:00
Richard Frith-MacDonald
d9d0d1b6fd portability bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32769 72102866-910b-0410-8b05-ffd578937521
2011-04-04 10:57:49 +00:00
Richard Frith-MacDonald
267fc9c251 GC fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32765 72102866-910b-0410-8b05-ffd578937521
2011-04-03 08:20:57 +00:00
Richard Frith-MacDonald
449cc10f91 fix ifdefs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32723 72102866-910b-0410-8b05-ffd578937521
2011-03-28 13:57:27 +00:00
Richard Frith-MacDonald
a8d17e5179 improved use of developer testing conditionals
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32719 72102866-910b-0410-8b05-ffd578937521
2011-03-28 13:22:57 +00:00
Richard Frith-MacDonald
35ac5a084f make relative link test into a hope
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32696 72102866-910b-0410-8b05-ffd578937521
2011-03-24 05:40:57 +00:00
Richard Frith-MacDonald
dfd42af94f fix test of expansion of relative symlinks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32695 72102866-910b-0410-8b05-ffd578937521
2011-03-24 05:17:47 +00:00
Richard Frith-MacDonald
2ddc940445 cleanup to avoid tests which won't work on most systems
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32687 72102866-910b-0410-8b05-ffd578937521
2011-03-22 19:59:36 +00:00
Richard Frith-MacDonald
603e2f2f08 tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32686 72102866-910b-0410-8b05-ffd578937521
2011-03-22 19:47:10 +00:00