2024-MacC-M14-Medio / ShazamExtractor / Tests / ShazamExtractorTests / ShazamerTest.swift
ShazamerTest.swift
Raw
//
//  ShazamerTest.swift
//  ShazamExtractor
//
//  Created by  on 11/1/24.
//

//import Testing
//@testable import ShazamExtractor
//
//struct ShazamerTestCase {
//    let youtubeURLString: String
//    let videoID: String
//    let totalLength: Int
//}
//
//struct ShazamerTest {
//
//    @Test("Check Shazamer result is not empty",
//          arguments: testCases)
//    func shazaming(testCase: ShazamerTestCase) async throws {
//        let matches = try await Shazamer(youtubeURLString: testCase.youtubeURLString,
//                                         videoID: testCase.videoID,
//                                         totalLength: testCase.totalLength).shazam()
//        dump(matches)
//        #expect(type(of: matches) == [String].self)
//        #expect(matches.count > 0)
//    }
//
//    static let testCases = [
//        ShazamerTestCase(
//            youtubeURLString: "https://www.youtube.com/watch?v=IHLQIyaVYQo",
//            videoID: "IHLQIyaVYQo1",
//            totalLength: 1800
//        ),
//        ShazamerTestCase(
//            youtubeURLString: "https://www.youtube.com/watch?v=YyY1T6IkOYg",
//            videoID: "YyY1T6IkOYg1",
//            totalLength: 3675
//        )
//    ]
//}