From 508f020eb5f8665e9cb53fb319440216d134e299 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Wed, 7 Dec 2016 17:19:15 +0100 Subject: Prevent stopless functions (#7309) * [ios, macos] prevent stopless functions * [ios, macos] removed unused bridging header and fixed naming --- platform/darwin/test/MGLStyleValueTests.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 platform/darwin/test/MGLStyleValueTests.m (limited to 'platform/darwin/test/MGLStyleValueTests.m') diff --git a/platform/darwin/test/MGLStyleValueTests.m b/platform/darwin/test/MGLStyleValueTests.m new file mode 100644 index 0000000000..fe6096584d --- /dev/null +++ b/platform/darwin/test/MGLStyleValueTests.m @@ -0,0 +1,13 @@ +#import +#import + +@interface MGLStyleValueTests : XCTestCase +@end + +@implementation MGLStyleValueTests + +- (void)testStoplessFunction { + XCTAssertThrowsSpecificNamed([MGLStyleValue valueWithStops:@{}], NSException, NSInvalidArgumentException, @"Stopless function should raise an exception"); +} + +@end -- cgit v1.2.1