Commit graph

152 commits

Author SHA1 Message Date
rfm
0681b25521 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
rfm
b9ce94a828 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
rfm
c21cdfad4d 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
gcasa
73273b7e75 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
gcasa
f2604e1d43 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
rfm
f539c1aba4 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
rfm
c28138f3fa 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
fredkiefer
8870a4331f * 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
rfm
83f4855240 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
rfm
e57d983f5e 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
rfm
48fa5991ab 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
rfm
04c72fb364 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
rfm
4b08c19756 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
rfm
f3901684e8 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
rfm
574456553e 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
rfm
6b8dc7ef6c 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
rfm
6efa3c983e 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
thebeing
a8bcdd81c1 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
thebeing
4432b3d54d 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
thebeing
3271491ce1 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
rfm
f9d6895627 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
fredkiefer
0b9867ab87 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
fredkiefer
be8cee55f2 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
fredkiefer
2c42f05b7f 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
rfm
16657e5ff4 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
theraven
6ecc626629 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
theraven
f72d31cd68 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
theraven
a04ed1a9ff 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
fredkiefer
3104649bc8 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
fredkiefer
5134f51320 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
theraven
8a8836129c 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
theraven
407c9d0053 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
theraven
60b9752943 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
theraven
1d43e6de35 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
theraven
ceba92a265 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
theraven
fc206e3169 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
theraven
b45d78dfa7 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
theraven
accb4a97dc 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
theraven
7fea03e697 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
rfm
01b098e28a 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
theraven
408cec80d5 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
theraven
e23cad7454 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
theraven
9b2b826548 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
theraven
2735e3cb8b 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
rfm
bf055f4e56 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
rfm
e085dd6bb9 add base.make for flags to use when base is not yet installed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32826 72102866-910b-0410-8b05-ffd578937521
2011-04-10 13:59:50 +00:00
rfm
31eeb94bf3 fix missing include directory
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32824 72102866-910b-0410-8b05-ffd578937521
2011-04-10 07:06:03 +00:00
nicola
9eacfdee70 Updated comments for Test GNUmakefile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32816 72102866-910b-0410-8b05-ffd578937521
2011-04-09 00:00:21 +00:00
nicola
0a3883b4a0 Removed unused variable in makefile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32809 72102866-910b-0410-8b05-ffd578937521
2011-04-08 18:36:47 +00:00
nicola
4aa11c7652 Minor tidyups in Tests makefile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32808 72102866-910b-0410-8b05-ffd578937521
2011-04-08 18:28:35 +00:00