// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers // // SPDX-License-Identifier: MPL-2.0 // // File.swift // Pterodactyl // // Created by Jon Sterling on 30/11/2025. // import Foundation import Testing @testable import PterodactylBuild @testable import PterodactylLanguageServer @testable import TSCBasic @testable import llbuild2fx struct LanguageServerTests { @Test func testSingletonFileTree() throws { let path = try AbsolutePath(validating: "/foo/bar/file.txt") let foo = LLBDeclFileTree.file(absolutePath: path, contents: "foobar") let expected: LLBDeclFileTree = .dir([ "foo": .dir([ "bar": .dir([ "file.txt": .file("foobar") ]) ]) ]) #expect(foo.debugDescription == expected.debugDescription) } }