Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Fix TimeInterval test #88

Merged
merged 1 commit into from
Nov 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
- Fix Xcode 8.1 `Any` -> `Any?` warning
[Keith Smiley](https://github.com/keith)
[#87](https://github.com/lyft/mapper/pull/87)
- Fix `TimeInterval` test
[Keith Smiley](https://github.com/keith)
[#88](https://github.com/lyft/mapper/pull/88)

# 5.0.0

Expand Down
4 changes: 2 additions & 2 deletions Tests/MapperTests/NormalValueTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ final class NormalValueTests: XCTestCase {
}
}

let test = try? Test(map: Mapper(JSON: ["time": 123]))
XCTAssertTrue(test?.string == 123)
let test = try? Test(map: Mapper(JSON: ["time": 123.0]))
XCTAssertTrue(test?.string == 123.0)
}

func testMappingMissingKey() {
Expand Down