aboutsummaryrefslogtreecommitdiffstats
path: root/UnitTests/SPTableFilterParserTest.m
diff options
context:
space:
mode:
authorMarius Ursache <marius@marius.me.uk>2016-02-26 22:00:40 +1100
committerMarius Ursache <marius@marius.me.uk>2016-02-26 22:00:40 +1100
commitb88771821a3393a44c44e26225a8726943b4e99a (patch)
treedc8e1263b2d657532a632bdd1219385993b1b623 /UnitTests/SPTableFilterParserTest.m
parent503ae790c07799fbb303b3de2b43b371a8ab1bd8 (diff)
downloadsequelpro-b88771821a3393a44c44e26225a8726943b4e99a.tar.gz
sequelpro-b88771821a3393a44c44e26225a8726943b4e99a.tar.bz2
sequelpro-b88771821a3393a44c44e26225a8726943b4e99a.zip
Converted tests to XCTest
Converted the unit tests from SenTestingKit to XCTest as SenTestingKit was deprecated a couple of SDK versions ago.
Diffstat (limited to 'UnitTests/SPTableFilterParserTest.m')
-rw-r--r--UnitTests/SPTableFilterParserTest.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/UnitTests/SPTableFilterParserTest.m b/UnitTests/SPTableFilterParserTest.m
index d5f46969..1ff69e7f 100644
--- a/UnitTests/SPTableFilterParserTest.m
+++ b/UnitTests/SPTableFilterParserTest.m
@@ -12,9 +12,9 @@
#define USE_APPLICATION_UNIT_TEST 1
#import <Cocoa/Cocoa.h>
-#import <SenTestingKit/SenTestingKit.h>
+#import <XCTest/XCTest.h>
-@interface SPTableFilterParserTest : SenTestCase
+@interface SPTableFilterParserTest : XCTestCase
- (void)testFilterString;
@@ -29,7 +29,7 @@
[p setCurrentField:@"FLD"];
// binary matches as "$BINARY ", eating the one additional whitespace
- STAssertEqualObjects([p filterString],@"`FLD` constant string", @"Constant replacement");
+ XCTAssertEqualObjects([p filterString],@"`FLD` constant string", @"Constant replacement");
}
//simple one argument case with binary
{
@@ -38,7 +38,7 @@
[p setCaseSensitive:YES];
[p setArgument:@"arg1"];
- STAssertEqualObjects([p filterString], @"`FLD2` = FOO(BINARY arg1)", @"One Argument, $BINARY variable");
+ XCTAssertEqualObjects([p filterString], @"`FLD2` = FOO(BINARY arg1)", @"One Argument, $BINARY variable");
}
//simple two argument case with explicit current field
{
@@ -48,7 +48,7 @@
[p setFirstBetweenArgument:@"LA"];
[p setSecondBetweenArgument:@"RA"];
- STAssertEqualObjects([p filterString], @"MIN(`FLD3`,LA) = RA", @"Two Arguments, $CURRENT_FIELD variable");
+ XCTAssertEqualObjects([p filterString], @"MIN(`FLD3`,LA) = RA", @"Two Arguments, $CURRENT_FIELD variable");
}
}