-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from jeanetienne/update
Update to Swift 4.2 and minor changes
- Loading branch information
Showing
17 changed files
with
65 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
// | ||
// AppIconSetTests.swift | ||
// AssetResizer | ||
// | ||
// Created by Jean-Étienne on 2/6/17. | ||
// Copyright © 2017 Jean-Étienne. All rights reserved. | ||
// Copyright © 2019 Jean-Étienne. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
|
@@ -64,8 +61,8 @@ class AppIconSetTests: XCTestCase { | |
return ResizedImage(original: originalImage, | ||
name: sizeDescription.canonicalName, | ||
resizing: sizeDescription, | ||
bitmapType: .PNG) | ||
}.flatMap { $0 } | ||
bitmapType: .png) | ||
}.compactMap { $0 } | ||
|
||
do { | ||
try appIconSet.update(with: resizedImages) | ||
|
@@ -74,7 +71,7 @@ class AppIconSetTests: XCTestCase { | |
} | ||
|
||
if let updatedSizes = AppIconSet(atPath: appIconSetPath)?.jsonRepresentation["images"] as? [[String: String]] { | ||
let updatedFilenames = updatedSizes.map { $0["filename"] }.flatMap { $0 }.sorted() | ||
let updatedFilenames = updatedSizes.map { $0["filename"] }.compactMap { $0 }.sorted() | ||
let expectedFilenames = [ | ||
"[email protected]", | ||
"[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.