25 lines
758 B
Swift
25 lines
758 B
Swift
// SPDX-FileCopyrightText: 2026 Kaede Akino
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
import TermindApplication
|
|
import Testing
|
|
|
|
@testable import Termind
|
|
|
|
struct RuntimeVersionsTests {
|
|
@Test
|
|
func runtimeComponentsExposeVersions() {
|
|
#expect(RuntimeVersions.ghostty != RuntimeVersions.unknown)
|
|
#expect(!RuntimeVersions.ghostty.isEmpty)
|
|
#expect(RuntimeVersions.libssh2 != RuntimeVersions.unknown)
|
|
#expect(!RuntimeVersions.libssh2.isEmpty)
|
|
#expect(RuntimeVersions.tailscale != RuntimeVersions.unknown)
|
|
#expect(RuntimeVersions.openSSL.split(separator: ".").count == 3)
|
|
}
|
|
|
|
@Test
|
|
func missingVersionPointerFallsBackCleanly() {
|
|
#expect(RuntimeVersions.decode(nil, length: 0) == nil)
|
|
}
|
|
}
|