Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

和暦時にテストが失敗する #53

Open
azu opened this issue Apr 5, 2013 · 2 comments
Open

和暦時にテストが失敗する #53

azu opened this issue Apr 5, 2013 · 2 comments

Comments

@azu
Copy link
Contributor

azu commented Apr 5, 2013

iOSの設定で西暦以外を設定している場合に、
testDateForKeytestDateForKeyUsingFormat, testObjectForKeyTransformBlock のテストが失敗しています。

iOS - iPhone iOS 6 1 10B141 2013-04-05 12-25-53

NSDictionary SelectorTest m - Overline - workspaceObjective-COverline 2013-04-05 12-27-04

実装を変更するかテストに使うデータを和暦に依存しないように変更する必要がありそうです。

NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
@yaakaito
Copy link
Owner

yaakaito commented Apr 5, 2013

報告ありがとうございます!

テスト側を修正しようかなと思ってます。

@yaakaito
Copy link
Owner

yaakaito commented Apr 5, 2013

あ、でもテストで解決しちゃうと、パーサーとしては微妙になっちゃいますね・・・

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants