[swift-corelibs-dev] Testcases for NSDateFormatter

2015-12-31 Thread Joseph Bell via swift-corelibs-dev
Howdy,

A few weeks ago I opened https://bugs.swift.org/browse/SR-208 as it appears
setting the dateFormat property of NSDateFormatter has no effect.  It's
been open for a while and I thought I'd start looking at whether or not I
could help, and decided to first start with getting NSDateFormatter
included in TestFoundation.

Before moving on further and issuing a PR, I would appreciate feedback on
the approach that I'm taking here:

https://github.com/iachievedit/swift-corelibs-foundation/commit/482d861127e8b78007ceaf15f6c905ac04b1e9a4

The first tests are only looking at the dateStyle property, and I've
included tests for the various styles as they are rendered for the en_US
locale.  The intent is to add support for validating additional locales in
the future.

Since strptime doesn't appear to be available to the Glibc module I'm using
a quick Python script included in Resources/ to take a format string and
render a human-friendly date.

At the moment I know there is a discrepancy between what NSDateFormatter
and the python driver can emit, the python script is currently adjusting to
my timezone and not using UTC, but that will be fixed before a PR is
issued.  I'll also add the timeStyle property and then continue to add
tests.

Thoughts and comments most welcome, and Happy New Year.

Joe
___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


[swift-corelibs-dev] corelibs-xctest + swiftpm

2015-12-31 Thread Keith Smiley via swift-corelibs-dev
Hey all,

I was working on integrating a project with corelibs-xctest and I noticed that
it doesn't currently support building with swiftpm and instead provides
`.xcodeproj` which generates a `.framework`. Is there any future plan to also
include a `Package.swift` so that user's could build it either way? Because of
how simple corelibs-xctest is this is just a matter of including a barebones
`Package.swift` and moving the source files.


Thanks!

--
Keith Smiley

___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev