Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | tests: Only import ObjFW.h This prevents forgetting to add an import to ObjFW.h, as the tests would then not compile. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
dc0c6c34ab4742c37b8aa4ec3b2bc8fd |
| User & Date: | js 2019-02-17 22:44:23.000 |
Context
|
2019-02-18
| ||
| 01:37 | invocation: Make all offsets constants check-in: 780d096371 user: js tags: trunk | |
|
2019-02-17
| ||
| 22:44 | tests: Only import ObjFW.h check-in: dc0c6c34ab user: js tags: trunk | |
| 22:16 | OFWindowsRegistryKey: Add write support check-in: 4c5f686a52 user: js tags: trunk | |
Changes
Changes to tests/ForwardingTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <string.h> #import "TestsAppDelegate.h" #define FMT @"%@ %@ %@ %@ %@ %@ %@ %@ %@ %g %g %g %g %g %g %g %g %g" #define ARGS @"a", @"b", @"c", @"d", @"e", @"f", @"g", @"h", @"i", \ 1.5, 2.25, 3.125, 4.0625, 5.03125, 6.5, 7.25, 8.0, 9.0 #define RESULT @"a b c d e f g h i 1.5 2.25 3.125 4.0625 5.03125 6.5 7.25 8 9" |
| ︙ | ︙ |
Changes to tests/OFASN1DERValueTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < < < < < < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFData+ASN1DERValue";
@implementation TestsAppDelegate (OFASN1DERValueTests)
- (void)ASN1DERValueTests
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
OFASN1BitString *bitString;
|
| ︙ | ︙ |
Changes to tests/OFArrayTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = nil;
static OFString *c_ary[] = {
@"Foo",
@"Bar",
@"Baz"
|
| ︙ | ︙ |
Changes to tests/OFBlockTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "TestsAppDelegate.h" static OFString *module = @"OFBlock"; extern struct objc_abi_class _NSConcreteStackBlock; extern struct objc_abi_class _NSConcreteGlobalBlock; extern struct objc_abi_class _NSConcreteMallocBlock; |
| ︙ | ︙ |
Changes to tests/OFCharacterSetTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | | > < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "TestsAppDelegate.h" #import "OFCharacterSet_bitset.h" #import "OFCharacterSet_range.h" static OFString *module = nil; @interface SimpleCharacterSet: OFCharacterSet @end @implementation SimpleCharacterSet |
| ︙ | ︙ |
Changes to tests/OFDNSResolverTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFDNSResolverTests";
@implementation TestsAppDelegate (OFDNSResolverTests)
- (void)DNSResolverTests
{
|
| ︙ | ︙ |
Changes to tests/OFDataTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <string.h> #import "TestsAppDelegate.h" static OFString *module = @"OFData"; const char *str = "Hello!"; @implementation TestsAppDelegate (OFDataTests) - (void)dataTests |
| ︙ | ︙ |
Changes to tests/OFDateTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <time.h> | < < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* file.
*/
#include "config.h"
#include <time.h>
#import "TestsAppDelegate.h"
static OFString *module = @"OFDate";
@implementation TestsAppDelegate (OFDateTests)
- (void)dateTests
{
|
| ︙ | ︙ |
Changes to tests/OFDictionaryTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = nil;
static OFString *keys[] = {
@"key1",
@"key2"
};
|
| ︙ | ︙ |
Changes to tests/OFHMACTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* file.
*/
#include "config.h"
#include <string.h>
#import "TestsAppDelegate.h"
static OFString *module = @"OFHMAC";
static const uint8_t key[] =
"yM9h8K6IWnJRvxC/0F8XRWG7RnACDBz8wqK2tbXrYVLoKC3vPLeJikyJSM47tVHc"
"DlXHww9zULAC2sJUlm2Kg1z4oz2aXY3Y1PQSB4VkC/m0DQ7hCI6cAg4TWnKdzWTy"
"cvYGX+Y6HWeDY79/PGSd8fNItme6I8w4HDBqU7BP2sum3jbePJqoiSnhcyJZQTeZ"
|
| ︙ | ︙ |
Changes to tests/OFHTTPClientTests.m.
| ︙ | ︙ | |||
16 17 18 19 20 21 22 | */ #include "config.h" #include <inttypes.h> #include <string.h> | < < < < < < < < < < < < < < | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | */ #include "config.h" #include <inttypes.h> #include <string.h> #import "TestsAppDelegate.h" static OFString *module = @"OFHTTPClient"; static OFCondition *cond; static OFHTTPResponse *response = nil; @interface TestsAppDelegate (HTTPClientTests) <OFHTTPClientDelegate> |
| ︙ | ︙ |
Changes to tests/OFHTTPCookieManagerTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFHTTPCookieManager";
@implementation TestsAppDelegate (OFHTTPCookieManagerTests)
- (void)HTTPCookieManagerTests
{
|
| ︙ | ︙ |
Changes to tests/OFHTTPCookieTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFHTTPCookie";
@implementation TestsAppDelegate (OFHTTPCookieTests)
- (void)HTTPCookieTests
{
|
| ︙ | ︙ |
Changes to tests/OFINIFileTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFINIFile";
@implementation TestsAppDelegate (OFINIFileTests)
- (void)INIFileTests
{
|
| ︙ | ︙ |
Changes to tests/OFInvocationTests.m.
| ︙ | ︙ | |||
20 21 22 23 24 25 26 | #include <assert.h> #include <string.h> #if defined(HAVE_COMPLEX_H) && !defined(__STDC_NO_COMPLEX__) # include <complex.h> #endif | < < < < | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#include <assert.h>
#include <string.h>
#if defined(HAVE_COMPLEX_H) && !defined(__STDC_NO_COMPLEX__)
# include <complex.h>
#endif
#import "TestsAppDelegate.h"
static OFString *module = @"OFInvocation";
struct test_struct {
unsigned char c;
unsigned int i;
|
| ︙ | ︙ |
Changes to tests/OFJSONTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFJSON";
@implementation TestsAppDelegate (JSONTests)
- (void)JSONTests
{
|
| ︙ | ︙ |
Changes to tests/OFKernelEventObserverTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #ifdef HAVE_KQUEUE # import "OFKernelEventObserver_kqueue.h" #endif #ifdef HAVE_EPOLL # import "OFKernelEventObserver_epoll.h" #endif #ifdef HAVE_POLL |
| ︙ | ︙ |
Changes to tests/OFListTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFList";
static OFString *strings[] = {
@"Foo",
@"Bar",
@"Baz"
|
| ︙ | ︙ |
Changes to tests/OFLocaleTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFLocale";
@implementation TestsAppDelegate (OFLocaleTests)
- (void)localeTests
{
|
| ︙ | ︙ |
Changes to tests/OFMD5HashTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <string.h> #import "TestsAppDelegate.h" static OFString *module = @"OFMD5Hash"; const uint8_t testfile_md5[16] = "\x00\x8B\x9D\x1B\x58\xDF\xF8\xFE\xEE\xF3\xAE\x8D\xBB\x68\x2D\x38"; |
| ︙ | ︙ |
Changes to tests/OFMethodSignatureTests.m.
| ︙ | ︙ | |||
19 20 21 22 23 24 25 | #include <string.h> #if !defined(__STDC_NO_COMPLEX__) && defined(HAVE_COMPLEX_H) # include <complex.h> #endif | < < < < < | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
#include <string.h>
#if !defined(__STDC_NO_COMPLEX__) && defined(HAVE_COMPLEX_H)
# include <complex.h>
#endif
#import "TestsAppDelegate.h"
static OFString *module = @"OFMethodSignature";
struct test1_struct {
char c;
int i;
|
| ︙ | ︙ |
Changes to tests/OFNumberTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFNumber";
@implementation TestsAppDelegate (OFNumberTests)
- (void)numberTests
{
|
| ︙ | ︙ |
Changes to tests/OFObjectTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "TestsAppDelegate.h" #if (defined(OF_DRAGONFLYBSD) && defined(__LP64__)) || defined(OF_NINTENDO_3DS) # define TOO_BIG (SIZE_MAX / 3) #else # define TOO_BIG (SIZE_MAX - 128) #endif |
| ︙ | ︙ |
Changes to tests/OFPluginTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "TestsAppDelegate.h" #import "plugin/TestPlugin.h" #ifndef OF_IOS # define PLUGIN_PATH @"plugin/TestPlugin" #else |
| ︙ | ︙ |
Changes to tests/OFPropertyListTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "TestsAppDelegate.h" #define PLIST(x) \ @"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" \ @"<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" " \ @"\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">" \ @"<plist version=\"1.0\">\n" \ |
| ︙ | ︙ |
Changes to tests/OFRIPEMD160HashTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <string.h> #import "TestsAppDelegate.h" static OFString *module = @"OFRIPEMD160Hash"; const uint8_t testfile_rmd160[20] = "\x46\x02\x97\xF5\x85\xDF\xB9\x21\x00\xC8\xF9\x87\xC6\xEC\x84\x0D\xCE" "\xE6\x08\x8B"; |
| ︙ | ︙ |
Changes to tests/OFSHA1HashTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <string.h> #import "TestsAppDelegate.h" static OFString *module = @"OFSHA1Hash"; const uint8_t testfile_sha1[20] = "\xC9\x9A\xB8\x7E\x1E\xC8\xEC\x65\xD5\xEB\xE4\x2E\x0D\xA6\x80\x96\xF5" "\x94\xE7\x17"; |
| ︙ | ︙ |
Changes to tests/OFSHA224HashTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <string.h> #import "TestsAppDelegate.h" static OFString *module = @"OFSHA224Hash"; const uint8_t testfile_sha224[28] = "\x27\x69\xD8\x04\x2D\x0F\xCA\x84\x6C\xF1\x62\x44\xBA\x0C\xBD\x46\x64" "\x5F\x4F\x20\x02\x4D\x15\xED\x1C\x61\x1F\xF7"; |
| ︙ | ︙ |
Changes to tests/OFSHA256HashTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <string.h> #import "TestsAppDelegate.h" static OFString *module = @"OFSHA256Hash"; const uint8_t testfile_sha256[32] = "\x1A\x02\xD6\x46\xF5\xA6\xBA\xAA\xFF\x7F\xD5\x87\xBA\xC3\xF6\xC6\xB5" "\x67\x93\x8F\x0F\x44\x90\xB8\xF5\x35\x89\xF0\x5A\x23\x7F\x69"; |
| ︙ | ︙ |
Changes to tests/OFSHA384HashTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <string.h> #import "TestsAppDelegate.h" static OFString *module = @"OFSHA384Hash"; const uint8_t testfile_sha384[48] = "\x7E\xDE\x62\xE2\x10\xA5\x1E\x18\x8A\x11\x7F\x78\xD7\xC7\x55\xB6\x43" "\x94\x1B\xD2\x78\x5C\xCF\xF3\x8A\xB8\x98\x22\xC7\x0E\xFE\xF1\xEC\x53" |
| ︙ | ︙ |
Changes to tests/OFSHA512HashTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * file. */ #include "config.h" #include <string.h> #import "TestsAppDelegate.h" static OFString *module = @"OFSHA512Hash"; const uint8_t testfile_sha512[64] = "\x8F\x36\x6E\x3C\x19\x4B\xBB\xC7\x82\xAA\xCD\x7D\x55\xA2\xD3\x29\x29" "\x97\x6A\x3F\xEB\x9B\xB2\xCB\x75\xC9\xEC\xC8\x10\x07\xD6\x07\x31\x4A" |
| ︙ | ︙ |
Changes to tests/OFSerializationTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFSerialization";
@implementation TestsAppDelegate (OFSerializationTests)
- (void)serializationTests
{
|
| ︙ | ︙ |
Changes to tests/OFSetTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | | | < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
#import "OFMutableSet_hashtable.h"
#import "OFSet_hashtable.h"
static OFString *module = nil;
@interface SimpleSet: OFSet
{
OFMutableSet *_set;
}
|
| ︙ | ︙ |
Changes to tests/OFStreamTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFStream";
@interface StreamTester: OFStream
{
int state;
|
| ︙ | ︙ |
Changes to tests/OFStringTests.m.
| ︙ | ︙ | |||
17 18 19 20 21 22 23 | #include "config.h" #include <stdlib.h> #include <string.h> #include <math.h> | < < < < | < < < < | < < < | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#import "TestsAppDelegate.h"
#import "OFMutableString_UTF8.h"
static OFString *module = nil;
static OFString *whitespace[] = {
@" \r \t\n\t \tasd \t \t\t\r\n",
@" \t\t \t\t \t \t"
};
static of_unichar_t ucstr[] = {
|
| ︙ | ︙ |
Changes to tests/OFSystemInfoTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFSystemInfo";
@implementation TestsAppDelegate (OFSystemInfoTests)
- (void)systemInfoTests
{
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
#ifdef OF_HAVE_FILES
|
| ︙ | ︙ |
Changes to tests/OFTCPSocketTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* file.
*/
#include "config.h"
#include <string.h>
#import "TestsAppDelegate.h"
static OFString *module = @"OFTCPSocket";
@implementation TestsAppDelegate (OFTCPSocketTests)
- (void)TCPSocketTests
{
|
| ︙ | ︙ |
Changes to tests/OFThreadTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "TestsAppDelegate.h" static OFString *module = @"OFThread"; @interface TestThread: OFThread @end |
| ︙ | ︙ |
Changes to tests/OFUDPSocketTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* file.
*/
#include "config.h"
#include <string.h>
#import "TestsAppDelegate.h"
static OFString *module = @"OFUDPSocket";
@implementation TestsAppDelegate (OFUDPSocketTests)
- (void)UDPSocketTests
{
|
| ︙ | ︙ |
Changes to tests/OFURLTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFURL";
static OFString *url_str = @"ht%3atp://us%3Aer:p%40w@ho%3Ast:1234/"
@"pa%3Fth?que%23ry#frag%23ment";
@implementation TestsAppDelegate (OFURLTests)
|
| ︙ | ︙ |
Changes to tests/OFValueTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* file.
*/
#include "config.h"
#include <string.h>
#import "TestsAppDelegate.h"
static OFString *module = @"OFValue";
@implementation TestsAppDelegate (OFValueTests)
- (void)valueTests
{
|
| ︙ | ︙ |
Changes to tests/OFWindowsRegistryKeyTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFWindowsRegistryKey";
@implementation TestsAppDelegate (OFWindowsRegistryKeyTests)
- (void)windowsRegistryKeyTests
{
|
| ︙ | ︙ |
Changes to tests/OFXMLElementBuilderTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "TestsAppDelegate.h" static OFString *module = @"OFXMLElementBuilder"; static OFXMLNode *nodes[2]; static size_t i = 0; @implementation TestsAppDelegate (OFXMLElementBuilderTests) |
| ︙ | ︙ |
Changes to tests/OFXMLNodeTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestsAppDelegate.h"
static OFString *module = @"OFXMLNode";
@implementation TestsAppDelegate (OFXMLNodeTests)
- (void)XMLNodeTests
{
|
| ︙ | ︙ |
Changes to tests/OFXMLParserTests.m.
| ︙ | ︙ | |||
16 17 18 19 20 21 22 | */ #include "config.h" #include <stdlib.h> #include <string.h> | < < < < < < < < | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
#import "TestsAppDelegate.h"
static OFString *module = @"OFXMLParser";
static int i = 0;
enum event_type {
PROCESSING_INSTRUCTIONS,
|
| ︙ | ︙ |
Changes to tests/PBKDF2Tests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* file.
*/
#include "config.h"
#include <string.h>
#import "TestsAppDelegate.h"
static OFString *module = @"PBKDF2";
@implementation TestsAppDelegate (PBKDF2Tests)
- (void)PBKDF2Tests
{
|
| ︙ | ︙ |
Changes to tests/RuntimeTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "TestsAppDelegate.h" static OFString *module = @"Runtime"; @interface OFObject (SuperTest) - (id)superTest; @end |
| ︙ | ︙ |
Changes to tests/ScryptTests.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <string.h> | < < < < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* file.
*/
#include "config.h"
#include <string.h>
#import "TestsAppDelegate.h"
static OFString *module = @"scrypt";
/* Test vectors form RFC 7914 */
static const unsigned char salsa20Input[64] = {
0x7E, 0x87, 0x9A, 0x21, 0x4F, 0x3E, 0xC9, 0x86, 0x7C, 0xA9, 0x40, 0xE6,
0x41, 0x71, 0x8F, 0x26, 0xBA, 0xEE, 0x55, 0x5B, 0x8C, 0x61, 0xC1, 0xB5,
|
| ︙ | ︙ |
Changes to tests/SocketTests.m.
| ︙ | ︙ | |||
13 14 15 16 17 18 19 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" | < < < < < < < | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #import "TestsAppDelegate.h" #define COMPARE_V6(a, a0, a1, a2, a3, a4, a5, a6, a7) \ (a.sockaddr.in6.sin6_addr.s6_addr[0] == (a0 >> 8) && \ a.sockaddr.in6.sin6_addr.s6_addr[1] == (a0 & 0xFF) && \ a.sockaddr.in6.sin6_addr.s6_addr[2] == (a1 >> 8) && \ a.sockaddr.in6.sin6_addr.s6_addr[3] == (a1 & 0xFF) && \ a.sockaddr.in6.sin6_addr.s6_addr[4] == (a2 >> 8) && \ a.sockaddr.in6.sin6_addr.s6_addr[5] == (a2 & 0xFF) && \ |
| ︙ | ︙ |
Changes to tests/TestsAppDelegate.h.
| ︙ | ︙ | |||
11 12 13 14 15 16 17 | * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ | | < | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "ObjFW.h"
#define TEST(test, ...) \
{ \
[self outputTesting: test \
inModule: module]; \
\
if (__VA_ARGS__) \
|
| ︙ | ︙ |
Changes to tests/TestsAppDelegate.m.
| ︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #include <stdlib.h> | < < | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
* file.
*/
#include "config.h"
#include <stdlib.h>
#import "TestsAppDelegate.h"
#if defined(STDOUT) && (defined(OF_WINDOWS) || defined(OF_MSDOS) || \
defined(OF_IOS))
# undef STDOUT
# define STDOUT_SIMPLE
#endif
|
| ︙ | ︙ |