Implemented the "asString" computed property for the TimeInterval+Computed extension in the library target.

This commit is contained in:
2025-10-03 15:03:09 +02:00
parent 7006aa1bc8
commit 30a49353e8
5 changed files with 178 additions and 0 deletions
@@ -0,0 +1,21 @@
//===----------------------------------------------------------------------===
//
// This source file is part of the MarvelService open source project
//
// Copyright (c) 2025 Röck+Cöde VoF. and the MarvelService project authors
// Licensed under the EUPL 1.2 or later.
//
// See LICENSE for license information
// See CONTRIBUTORS for the list of MarvelService project authors
//
//===----------------------------------------------------------------------===
import Testing
extension Tag {
// MARK: Constants
/// A flag that indicates tests for a type extension.
@Tag static var `extension`: Self
}
@@ -0,0 +1,28 @@
//===----------------------------------------------------------------------===
//
// This source file is part of the MarvelService open source project
//
// Copyright (c) 2025 Röck+Cöde VoF. and the MarvelService project authors
// Licensed under the EUPL 1.2 or later.
//
// See LICENSE for license information
// See CONTRIBUTORS for the list of MarvelService project authors
//
//===----------------------------------------------------------------------===
import struct Foundation.Date
import struct Foundation.TimeInterval
/// A namespace assigned for input arguments on test cases.
enum Input {
// MARK: Constants
/// A list of timestamps samples.
static let timestamps: [TimeInterval] = [
Date(timeIntervalSince1970: 0).timeIntervalSince1970,
Date(timeIntervalSince1970: 1_000).timeIntervalSince1970,
Date(timeIntervalSince1970: 1_000_000).timeIntervalSince1970,
Date(timeIntervalSince1970: 1_000_000_000).timeIntervalSince1970,
]
}
@@ -0,0 +1,14 @@
//===----------------------------------------------------------------------===
//
// This source file is part of the MarvelService open source project
//
// Copyright (c) 2025 Röck+Cöde VoF. and the MarvelService project authors
// Licensed under the EUPL 1.2 or later.
//
// See LICENSE for license information
// See CONTRIBUTORS for the list of MarvelService project authors
//
//===----------------------------------------------------------------------===
/// A namespace assigned for output arguments on test cases, that are expected results.
enum Output {}