Implemented the resumed interrupted recordings and allowed processing discards on the RecordingViewModel view model in the Recording package target.
This commit is contained in:
@@ -15,7 +15,7 @@ struct TranscriptionTests {
|
||||
"",
|
||||
"This is a transcription.",
|
||||
" ",
|
||||
"Multiline\ntranscribed\ntext."
|
||||
"Multiline\ntranscribed\ntext.",
|
||||
])
|
||||
func `initializer stores the given text`(text: String) {
|
||||
let transcription = Transcription(text: text)
|
||||
@@ -23,7 +23,8 @@ struct TranscriptionTests {
|
||||
#expect(transcription.text == text)
|
||||
}
|
||||
|
||||
@Test func `initializer stores the given identifier`() {
|
||||
@Test
|
||||
func `initializer stores the given identifier`() {
|
||||
let id = UUID()
|
||||
let transcription = Transcription(
|
||||
id: id,
|
||||
@@ -40,10 +41,12 @@ struct TranscriptionTests {
|
||||
@Suite("Computed properties")
|
||||
struct ComputedProperties {
|
||||
|
||||
@Test(arguments: zip(
|
||||
["", "This is a transcription.", " "],
|
||||
[true, false, false]
|
||||
))
|
||||
@Test(
|
||||
arguments: zip(
|
||||
["", "This is a transcription.", " "],
|
||||
[true, false, false]
|
||||
)
|
||||
)
|
||||
func `is empty only when the text has no characters`(
|
||||
for text: String,
|
||||
expected: Bool
|
||||
@@ -60,7 +63,8 @@ struct TranscriptionTests {
|
||||
@Suite("Equatable")
|
||||
struct EquatableConformance {
|
||||
|
||||
@Test func `transcriptions with the same identifier and text are equal`() {
|
||||
@Test
|
||||
func `transcriptions with the same identifier and text are equal`() {
|
||||
let id = UUID()
|
||||
|
||||
let first = Transcription(
|
||||
@@ -75,7 +79,8 @@ struct TranscriptionTests {
|
||||
#expect(first == second)
|
||||
}
|
||||
|
||||
@Test func `transcriptions with generated identifiers are never equal`() {
|
||||
@Test
|
||||
func `transcriptions with generated identifiers are never equal`() {
|
||||
let first = Transcription(text: "This is a transcription.")
|
||||
let second = Transcription(text: "This is a transcription.")
|
||||
|
||||
@@ -89,13 +94,15 @@ struct TranscriptionTests {
|
||||
@Suite("Identifiable")
|
||||
struct IdentifiableConformance {
|
||||
|
||||
@Test func `identifier is stable across accesses`() {
|
||||
@Test
|
||||
func `identifier is stable across accesses`() {
|
||||
let transcription = Transcription(text: "This is a transcription.")
|
||||
|
||||
#expect(transcription.id == transcription.id)
|
||||
}
|
||||
|
||||
@Test func `identifiers differ between transcriptions`() {
|
||||
@Test
|
||||
func `identifiers differ between transcriptions`() {
|
||||
let first = Transcription(text: "This is a transcription.")
|
||||
let second = Transcription(text: "This is a transcription.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user