<commit_before>#import <Foundation/Foundation.h>
#import <SenTestingKit/SenTestingKit.h>
#define EXP_SHORTHAND
#import "Expecta.h"
#import "FakeTestCase.h"
#import "EXPExpect+Test.h"
#import "Fixtures.h"

#define assertPass(expr) \
STAssertNoThrow((expr), nil)

#define assertFail(expr, message) \
STAssertThrowsSpecificNamed((expr), NSException, (message), nil)

#define assertEquals(a, b) STAssertEquals((a), (b), nil)
#define assertEqualObjects(a, b) STAssertEqualObjects((a), (b), nil)
#define assertTrue(a) STAssertTrue((a), nil)
#define assertFalse(a) STAssertFalse((a), nil)
#define assertNil(a) STAssertNil((a), nil)

#define test_expect(a) [expect(a) test]
<commit_msg>updated assertion methods to use XCTAssert* macros when run with XCTest<commit_after>#import <Foundation/Foundation.h>
#import <SenTestingKit/SenTestingKit.h>
#define EXP_SHORTHAND
#import "Expecta.h"
#import "FakeTestCase.h"
#import "EXPExpect+Test.h"
#import "Fixtures.h"

#ifdef USE_XCTEST

#import <XCTest/XCTest.h>
#define TEST_SUPERCLASS XCTestCase

#define assertPass(expr) \
XCTAssertNoThrow((expr))

#define assertFail(expr, message...) \
XCTAssertThrowsSpecificNamed(expr, NSException, ## message)

#define assertEquals(a, b) XCTAssertEqual((a), (b))
#define assertEqualObjects(a, b) XCTAssertEqualObjects((a), (b))
#define assertTrue(a) XCTAssertTrue((a))
#define assertFalse(a) XCTAssertFalse((a))
#define assertNil(a) XCTAssertNil((a))

#else

#define TEST_SUPERCLASS SenTestCase

#define assertPass(expr) \
STAssertNoThrow((expr), nil)

#define assertFail(expr, message) \
STAssertThrowsSpecificNamed((expr), NSException, (message), nil)

#define assertEquals(a, b) STAssertEquals((a), (b), nil)
#define assertEqualObjects(a, b) STAssertEqualObjects((a), (b), nil)
#define assertTrue(a) STAssertTrue((a), nil)
#define assertFalse(a) STAssertFalse((a), nil)
#define assertNil(a) STAssertNil((a), nil)

#endif


#define test_expect(a) [expect(a) test]

{'fraction_non_alphanumeric': 0.1513903192584964, 'fraction_numerical': 0.0, 'mean_word_length': 8.341346153846153, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7118221', 'n_tokens_mistral': 689, 'n_tokens_neox': 683, 'n_words': 156}