Commit graph

670 commits

Author SHA1 Message Date
Hugo Melder
ac38295f64
NSRegularExpression: Improved Error and Exception handling to match macOS behaviour (#343)
* NSRegularExpression: Match macOS error handling

* Add test cases for error handling

* NSRegularExpression: Raise an NSInvalidArgumentException instead of NSInternalInconsistencyException

* Check if NSRegularExpression throws an exception
2023-11-13 19:55:49 +01:00
rfm
ec051d1d30 Add a couple of trivial testcases to compare floats 2023-11-06 15:47:36 +00:00
rfm
1942313dea NSISO8601DateFormatter bugfix (as reported by kevinpeizner) and tweaks. 2023-10-26 14:19:06 +01:00
Richard Frith-Macdonald
f0f841c01f test for non existent directory 2023-10-10 18:12:17 +01:00
Richard Frith-Macdonald
531d3b8559 Small array keyword fixes for NSPredicate 2023-10-08 13:48:33 +01:00
Gregory John Casamento
48ccee0beb Update tests to cover removeObserver:fromObjectsAtIndexes:forKeyPath:context: 2023-10-07 20:51:47 -04:00
Gregory John Casamento
3c7e13244f Update tests to test removeObserver:forKeyPath:context method 2023-10-07 20:51:47 -04:00
Richard Frith-Macdonald
1feeb27b08 Make testcases more robust. 2023-09-17 23:35:24 -04:00
Richard Frith-Macdonald
65163ebf48 Add testcases and corrected code to check for GSMacOSXCompatibility mode
when unlocking fails.  Also put more detail in the warning message
2023-09-17 23:35:03 -04:00
Richard Frith-Macdonald
ef9ad60627 Add Yavor Doganov's patches 2023-08-01 14:46:44 +01:00
Frederik Seiffert
48c8a1a6a1 Fix NSURL path on Windows for UNC paths 2023-07-26 18:21:07 +02:00
Richard Frith-Macdonald
5fd4dd1f16 Add interface for category ... needed on sme architectures in order to
get argumentds passed correctly.
2023-07-10 21:39:49 +01:00
Frederik Seiffert
7e14fd1979 Change NSURL tests to use example.com
httpbin.org has lately been unreliable, leading to spurious test failures on CI.
2023-06-13 14:33:40 +02:00
Frederik Seiffert
df743e6d52 Add test for -[NSFileManager contentsOfDirectoryAtURL:...] 2023-04-27 10:51:15 +02:00
rfm
96a8613dbc
Merge pull request #291 from qmfrederik/fixes/nsdata-base64-empty-string
`[NSData initWithBase64EncodedString]`: Fix decoding of an empty string
2023-04-07 15:29:22 +01:00
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
Frederik Seiffert
1835f3f549 NSURLSession: mark broken test as hopeful on Windows 2023-03-11 20:22:00 +01:00
Hugo Melder
a8c421d485
Skip all NSURL* test cases using GSInetServerStream on Windows (#268)
* Mark all test cases using GSSocketStream as hopeful on win32

* Update ChangeLog

* Remove allow-test-failures flag
2022-09-27 20:21:50 +02:00
Hugo Melder
63703e0a80
Improve strict C99 support by explicitly including headers (#275)
* Explicitly include headers in config and tests

* Update ChangeLog
2022-09-15 12:24:49 +02:00
Richard Frith-Macdonald
15b97442cb Use httpbin.org rather than www.w3.org since the latter no longer supports http 2022-09-15 10:07:57 +01:00
Frederik Seiffert
179158dbc5 Fix NSPredicate test using GCC 2022-09-15 10:57:17 +02:00
Hugo Melder
8f8585405e
NSXMLParser unit test fixes (#272)
* Convert parser output to LF

* Only replace CR
2022-08-27 12:41:18 +02:00
Hugo Melder
7fd20d1ae3
NSPredicate Value Fix
* Check if object is an NSExpression object

* Fix Indentation

* Update Changelog

* Add test case
2022-08-24 18:01:30 +02:00
Richard Frith-Macdonald
68f6862ff2 Add a few testcases and make ICU dependent tests into 'hopes' 2022-08-23 21:10:21 +01:00
Hugo Melder
78d9f73a36
Allow CRLF and LF in NSXMLParser test 2022-08-23 19:18:44 +02:00
Hugo Melder
32eb5d2acd
win32: Support overlapped (asynchronous) I/O on standard streams in GSFileHandle
* win32: Support overlapped I/O on standard streams in GSFileHandle

* Add isStandardInput instance variable

* Restrict PeekConsoleInput on stdin

* Update ChangeLog
2022-08-23 18:43:14 +02:00
Hugo Melder
6b537b4a45
Detect CRLF in GSMime tests
* Detect CRLF in GSMime tests

* Allow either CRLF or LF

* Update general.m
2022-08-23 18:41:37 +02:00
Hugo Melder
5caececdcd
Update make check (#267) 2022-08-23 09:55:28 +02:00
Hugo Melder
7d6a84f4f5
Mark notANumber test case as hopeful 2022-08-19 10:58:29 +02:00
Hugo Melder
beb3e73e2f Update NSTimeZone unit test to match macOS behaviour 2022-08-11 16:34:07 +02:00
Hugo Melder
9a0b660299
Merge branch 'master' into NSTimeZone-win32-fix 2022-08-11 11:59:07 +02:00
Hugo Melder
f5a983a037
Merge pull request #256 from gnustep/msvc-test-fixes
GSTLS, NSData, NSString Unit Test Fixes on Windows MSVC
2022-08-11 11:57:21 +02:00
Hugo Melder
ca9136397d
Merge branch 'master' into NSBundle-msvc-tests 2022-08-11 09:16:06 +02:00
Hugo Melder
886a9220da
Merge pull request #257 from gnustep/nstask-msvc-test-fixes
Fix NSTask unit tests on Windows MSVC
2022-08-11 09:15:06 +02:00
Hugo Melder
f1be501f38
Merge pull request #260 from gnustep/NSXML-test-fixes
NSXML unit test and NSURL file URI fixes
2022-08-11 09:14:32 +02:00
Hugo Melder
1ea722a07a Fix NSXMLParser (strict) tests on Windows 2022-08-10 17:53:59 +02:00
Hugo Melder
ffe938c49e Update GSXML unit test to use NSURL APIs 2022-08-10 17:15:16 +02:00
Hugo Melder
a5c98620c0
Merge branch 'master' into msvc-test-fixes 2022-08-09 12:09:57 +02: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
3c095da62f Windows to IANA time zone conversion: remove unsupported TIME_ZONE_ID_DAYLIGHT conversion 2022-08-07 10:55:20 +02:00
Richard Frith-Macdonald
34fca15dc9 iFix incorrect use of ObjC strings where C-strings expected. 2022-08-06 17:33:20 +01:00
Hugo Melder
f6ce98e7b5
Remove erroneous suffix. 2022-08-05 13:31:16 +02:00
Hugo Melder
f3e6ea1dd5 Remove comment 2022-08-05 12:55:46 +02:00
Hugo Melder
dd2d3f684c Conditionally use .exe suffix in executable paths in NSTask tests 2022-08-05 12:54:36 +02:00
Hugo Melder
e84fd88e6b Fix compilation of NSTask helper test files on Windows MSVC 2022-08-05 12:53:34 +02:00
Hugo Melder
2e65ee34f1 Disable tilde abbreviation test on Windows 2022-08-04 17:05:55 +02:00
Hugo Melder
98ff5d2a16 Check for UTF8String in NSProgress unit test 2022-08-04 17:05:55 +02:00
Hugo Melder
e052d5764a Change Objective-C string to cstring in NSProgress unit test 2022-08-04 17:05:55 +02:00
Hugo Melder
52b8752776 Check for nil in NSData Test 2022-08-04 17:05:55 +02:00
Hugo Melder
096f6e7fec Missing semicolon and misplaced code in GSTLS unit test 2022-08-04 17:05:55 +02:00