30 Commits
Author SHA1 Message Date
Matt Rubin c79a6a16f8 Tweak XCTAssertThrowsError handler closures 2022-12-28 13:17:31 -05:00
Matt Rubin 160d90d118 Merge develop into throwing-initializers 2022-12-28 12:30:18 -05:00
Matt Rubin 923e0bb5f2 Disable a large_tuple warning in GeneratorTests.swift 2022-12-23 01:47:14 -05:00
Matt Rubin 5289388f48 [Lint] Clean up identifier names in the tests 2019-04-27 17:06:03 -04:00
Matt Rubin d457189307 Update license copyright dates 2019-04-27 12:06:21 -04:00
Matt Rubin 1fa793569c Merge develop into throwing-initializers 2019-04-27 01:40:04 -04:00
Matt Rubin 9d49e1563d [Lint] Re-enable comma linting, with selective disabling 2018-09-14 17:16:50 -04:00
Matt Rubin a722b66a57 Remove the cross-module Generator initializer, and fix invalid tests
Cross-module struct initializers which set properties directly are deprecated in Swift 4.1, and will be an error in Swift 5.
The fact that a custom initializer was needed to construct the invalid Generators used by the test is indicative of a design flaw in the tests. If creating an invalid Generator with the library's default API is not possible, then testing such impossible-to-create invalid Generators is unnecessary. It is enough to test that attempts to create these invalid generators will fail.
2018-04-21 17:27:05 -04:00
Matt Rubin 87ce331786 Use XCTAssertThrowsError where possible in Generator tests 2018-03-15 12:33:46 -04:00
Matt Rubin 998e084e48 Remove unnecessary throws from a test function declaration 2018-03-10 00:25:57 -05:00
Matt Rubin cb1714c565 Let XCTest catch Generator initialization failures in tests 2018-03-10 00:17:25 -05:00
Matt Rubin 48a76260d9 Replace Generator's failable initializer with a throwing initializer 2018-03-10 00:02:40 -05:00
Matt Rubin 32bd750464 Enable SwiftLint's vertical_parameter_alignment_on_call rule
Add a comment and temporarily disable the rule in one spot to prevent a false positive.
2018-03-08 16:31:04 -05:00
Matt Rubin 1951e079ff Update the copyright dates of files modified in 2017 2017-02-05 23:49:22 -05:00
Matt Rubin 19e0aad792 Simplify iteration in generator tests 2017-02-04 21:36:13 -05:00
Matt Rubin 4c190be616 Convert Generator.password(at:) to take a Date instead of a TimeInterval 2017-02-04 21:28:39 -05:00
Matt Rubin 38c9ae0dcd Convert Algorithm case names to lowercase, following Swift 3 conventions 2017-02-04 20:56:02 -05:00
Matt Rubin fa65b0d702 Merge swift-3 into swift-3-api-style 2016-11-15 23:54:13 -05:00
Matt Rubin 32ae1d8fb7 Update the new tests to Swift 3 2016-11-15 23:15:28 -05:00
Matt Rubin 3be33e94b1 Merge 2.1-rc into version-2.1-changes 2016-11-15 23:09:52 -05:00
Matt Rubin 80c8e1707d Add a test for passwordAtTime(_:) with an invalid digit count 2016-11-13 14:10:16 -05:00
Matt Rubin 91295b19d1 Add a test for passwordAtTime(_:) with an invalid period 2016-11-13 14:07:27 -05:00
Matt Rubin 30c42c0975 Add a test for passwordAtTime(_:) at an invalid time 2016-11-13 13:51:23 -05:00
Matt Rubin 3938c8fba9 Update some function names to match the Swift 3 style 2016-07-27 15:30:45 -04:00
Matt Rubin 53bd8c4212 Fix errors with Data and String APIs in the tests 2016-07-19 22:35:04 -04:00
Matt Rubin b0d235ec7c Automatic Swift 3 conversion 2016-07-19 22:35:04 -04:00
Matt Rubin 9b1029fbf1 Convert Generator.Factor enum cases to lowercase 2016-07-19 22:35:04 -04:00
Matt Rubin ea14be90d7 Add typealiases for Date and TimeInterval 2016-07-19 22:35:04 -04:00
Matt Rubin 58f31aa20a Add a Data typealias 2016-07-19 22:35:04 -04:00
Matt Rubin 2a5a317bbc Rename "Tests" directory 2016-02-26 00:21:28 -05:00