feat: Moves info view feature to it's own module.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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%")
|
||||
}
|
||||
|
||||
6
Tests/EstimatedPressureTests/Tags.swift
Normal file
6
Tests/EstimatedPressureTests/Tags.swift
Normal file
@@ -0,0 +1,6 @@
|
||||
import Testing
|
||||
|
||||
extension Tag {
|
||||
@Tag static var sharedModel: Self
|
||||
@Tag static var percentage: Self
|
||||
}
|
||||
Reference in New Issue
Block a user