Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (21 sloc) 0.564 kb
//
// EncodingTests.m
// RaptureXML
//
// Created by John Blanco on 3/31/12.
// Copyright (c) 2012 Rapture In Venice. All rights reserved.
//
#import "RXMLElement.h"
@interface EncodingTests : SenTestCase {
NSString *chineseXML_;
}
@end
@implementation EncodingTests
- (void)setUp {
chineseXML_ = @"<condition data=\"以晴为主\"/>";
}
- (void)testChinese {
RXMLElement *rxml = [RXMLElement elementFromXMLString:chineseXML_ encoding:NSUTF8StringEncoding];
STAssertEqualObjects([rxml attribute:@"data"], @"以晴为主", nil);
}
@end
Jump to Line
Something went wrong with that request. Please try again.