feat: Moves info view feature to it's own module.

This commit is contained in:
2024-06-11 13:06:25 -04:00
parent 75f009ed8f
commit c6c45ffa7e
9 changed files with 40 additions and 17 deletions

View File

@@ -71,6 +71,7 @@ final class PositiveNumericTests: XCTestCase {
@Test(
"Values are positive only",
.tags(.sharedModel),
arguments: [
0.1,
-0.1
@@ -83,6 +84,7 @@ final class PositiveNumericTests: XCTestCase {
@Test(
"PlenumDimension area calculation",
.tags(.sharedModel),
arguments: [
(PlenumDimension.rectangular(width: 24, height: 12), 2),
(PlenumDimension.round(16), 1.4)

View File

@@ -2,6 +2,7 @@ import SharedModels
import Testing
import XCTest
@Suite(.tags(.sharedModel, .percentage))
struct PercentagePostfixOperatorTests {
static let arguments: [(Percentage, Double)] = [
(50%, 50),
@@ -15,6 +16,7 @@ struct PercentagePostfixOperatorTests {
}
}
@Suite(.tags(.sharedModel, .percentage))
struct PercentageInitializationTests {
@Test("Percentage expressible tests")
@@ -34,6 +36,7 @@ struct PercentageInitializationTests {
}
}
@Suite(.tags(.sharedModel, .percentage))
struct PercentageMathTests {
let first = 2%
@@ -66,7 +69,7 @@ struct PercentageMathTests {
}
}
@Test("Percentage custom string convertible")
@Test("Percentage custom string convertible", .tags(.sharedModel, .percentage))
func percentageString() {
#expect(50%.description == "50%")
}

View File

@@ -0,0 +1,6 @@
import Testing
extension Tag {
@Tag static var sharedModel: Self
@Tag static var percentage: Self
}