Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c0fc5c3891
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (28 sloc) 1.015 kb
// URLCategoryTest.m
// SSToolkit
// Created by Sam Soffes on 4/14/11.
// Copyright 2011 Sam Soffes. All rights reserved.
#import <SSToolkit/NSURL+SSToolkitAdditions.h>
@interface URLCategoryTest : GHTestCase
@implementation URLCategoryTest
- (void)testURLWithFormat {
NSURL *url1 = [NSURL URLWithString:[NSString stringWithFormat:@"", @"NSURL"]];
NSURL *url2 = [NSURL URLWithFormat:@"", @"NSURL"];
GHAssertNotNil(url2, nil);
GHAssertEqualObjects(url1, url2, nil);
- (void)testQueryDictionary {
NSURL *url = [[NSURL alloc] initWithString:@""];
NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:
@"bar", @"foo",
@"true", @"awesome",
GHAssertEqualObjects([url queryDictionary], dictionary, nil);
[url release];
[dictionary release];
Jump to Line
Something went wrong with that request. Please try again.