this repo has no description
www.jonmsterling.com/01HC/
1// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers
2//
3// SPDX-License-Identifier: MPL-2.0
4
5//
6// File.swift
7// Pterodactyl
8//
9// Created by Jon Sterling on 30/11/2025.
10//
11
12import Foundation
13import Testing
14
15@testable import PterodactylBuild
16@testable import PterodactylLanguageServer
17@testable import TSCBasic
18@testable import llbuild2fx
19
20struct LanguageServerTests {
21 @Test
22 func testSingletonFileTree() throws {
23 let path = try AbsolutePath(validating: "/foo/bar/file.txt")
24 let foo = LLBDeclFileTree.file(absolutePath: path, contents: "foobar")
25 let expected: LLBDeclFileTree =
26 .dir([
27 "foo": .dir([
28 "bar": .dir([
29 "file.txt": .file("foobar")
30 ])
31 ])
32 ])
33
34 #expect(foo.debugDescription == expected.debugDescription)
35 }
36}