Commit graph

684 commits

Author SHA1 Message Date
Riccardo Mottola
75fd9549ef make test user locale independent 2024-01-22 21:35:10 +01:00
Страхиња Радић
ecc5d8008c Tests/base/NSCalendar/era.m: Fix testing with non-English locale
Signed-off-by: Страхиња Радић <contact@strahinja.org>
2024-01-14 17:24:02 +01:00
hmelder
992377c6fd Replace dot notation with method call 2023-12-28 12:02:04 +01:00
hmelder
153fe3f7f0 Replace NSArray subscripting with traditional method call 2023-12-28 12:02:04 +01:00
hmelder
cb05d93167 Remove array and dictionary literals 2023-12-28 12:02:04 +01:00
hmelder
4f2cb0672c Remove redefinition in Tests/KVC/nsnull.m 2023-12-28 12:02:04 +01:00
hmelder
6f3c7ce76b KVC nsnull.m add trailing newline 2023-12-28 12:02:04 +01:00
hmelder
7b657f4777 NSPredicate: Check if predicates with NSNull work as expected 2023-12-28 12:02:04 +01:00
hmelder
4e45c968d5 Add unit test for NSNull and KVC 2023-12-28 12:02:04 +01:00
rfm
c739ac81bd Another path fix 2023-12-19 14:24:13 +00:00
Frederik Seiffert
3b3687afb3 Fix NSURLRequest test
We can't use parameters containing commas in macros.
2023-11-15 08:59:57 +01:00
Frederik Seiffert
fd7f11a134 Support deleting NSMutableURLRequest headers by calling setValue:forHTTPHeaderField: with nil value. 2023-11-14 23:04:42 +01:00
rfm
e8b67e3e0b fix for #292 2023-11-14 20:55:22 +00:00
rfm
1db5b071ee Deal with systems which don't dfefine pi in the normal place 2023-11-13 19:19:03 +00:00
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