damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 2aaa58ada664e5212d0cddcb70d2b1f443800320
parent 5a956248f9c017a5d9afba2a2ffc47afc4934535
Author: William Casarin <jb55@jb55.com>
Date:   Sun,  1 Jan 2023 11:32:04 -0800

Fix relative date tests

Diffstat:
MdamusTests/TimeAgoTests.swift | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/damusTests/TimeAgoTests.swift b/damusTests/TimeAgoTests.swift @@ -15,8 +15,8 @@ final class TimeAgoTests: XCTestCase { XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-2)), "now") XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-3)), "3s") XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-59)), "59s") - XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-60)), "1m") - XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-3599)), "59m") + XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-60)), "1min") + XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-3599)), "59min") XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-3600)), "1h") XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-86399)), "23h") XCTAssertEqual(time_ago_since(Date.now.addingTimeInterval(-86400)), "1d")