boredzo / iso-8601-date-formatter

A Cocoa NSFormatter subclass to convert dates to and from ISO-8601-formatted strings. Supports calendar, week, and ordinal formats.
http://boredzo.org/iso8601dateformatter/
Other
600 stars 140 forks source link

Cocoa Touch tests should simulate a memory warning #24

Closed boredzo closed 11 years ago

boredzo commented 11 years ago

A test case in the Cocoa Touch test bundle target could and should post the notification that ordinarily the system posts in the event of a memory warning, in order to test that the ISO 8601 Date Formatter responds appropriately.

boredzo commented 11 years ago

Such a test will currently fail, because the date formatter expects you to tell it to drop its caches whenever you need to; it does not observe for the memory warning notification itself.

boredzo commented 11 years ago

This should be in a separate test case class from the one we currently have, and the new class should be located within the ISO8601ForCocoaTouchTests group and only a member of that target.