34 lines
1.1 KiB
Swift
34 lines
1.1 KiB
Swift
|
|
// This file is auto-generated by alef — DO NOT EDIT.
|
||
|
|
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||
|
|
// To regenerate: alef generate
|
||
|
|
// To verify freshness: alef verify --exit-code
|
||
|
|
// Issues & docs: https://github.com/kreuzberg-dev/alef
|
||
|
|
// swift-format-ignore-file
|
||
|
|
|
||
|
|
import XCTest
|
||
|
|
import Foundation
|
||
|
|
#if canImport(FoundationNetworking)
|
||
|
|
import FoundationNetworking
|
||
|
|
#endif
|
||
|
|
import Kreuzberg
|
||
|
|
import RustBridge
|
||
|
|
|
||
|
|
/// E2e tests for category: registry_operations.
|
||
|
|
final class RegistryOperationsTests: XCTestCase {
|
||
|
|
func testExtensionsDocx() throws {
|
||
|
|
// Get file extensions for DOCX MIME type
|
||
|
|
let result = try Kreuzberg.getExtensionsForMime(mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document")
|
||
|
|
}
|
||
|
|
|
||
|
|
func testExtensionsHtml() throws {
|
||
|
|
// Get file extensions for HTML MIME type
|
||
|
|
let result = try Kreuzberg.getExtensionsForMime(mimeType: "text/html")
|
||
|
|
}
|
||
|
|
|
||
|
|
func testExtensionsPdf() throws {
|
||
|
|
// Get file extensions for PDF MIME type
|
||
|
|
let result = try Kreuzberg.getExtensionsForMime(mimeType: "application/pdf")
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|