You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
514 B
18 lines
514 B
import Foundation
|
|
import Testing
|
|
@testable import Music
|
|
|
|
struct SmartPlaylistTests {
|
|
// Creates a SmartPlaylist in memory and verifies its properties.
|
|
@Test func smartPlaylistProperties() throws {
|
|
let sp = SmartPlaylist(
|
|
id: nil,
|
|
name: "Miles Davis",
|
|
searchQuery: "miles davis",
|
|
createdAt: Date()
|
|
)
|
|
#expect(sp.name == "Miles Davis")
|
|
#expect(sp.searchQuery == "miles davis")
|
|
#expect(sp.isSmartPlaylist == true)
|
|
}
|
|
}
|
|
|