bugfixes, better MusicXML support and 1.1.0
This commit is contained in:
@@ -52,7 +52,7 @@ struct LiveSessionDiagnosticsTests {
|
||||
@Test
|
||||
func compilerErrorWrapsUnderlyingForNonCompileFailures() {
|
||||
// Force a non-compile error by pointing at a build dir that doesn't exist.
|
||||
// The Phase 142 compile path still succeeds (a swiftc invocation with -I
|
||||
// The compile path still succeeds (a swiftc invocation with -I
|
||||
// pointing at a missing dir surfaces as `compileFailed` via swiftc's own
|
||||
// "no such module" — not `compilerError`). Instead, drive a real
|
||||
// compilerError case by routing through a LiveCompileError that isn't
|
||||
@@ -60,7 +60,7 @@ struct LiveSessionDiagnosticsTests {
|
||||
// entrySymbolMissing — but a real run with full build dir succeeds.
|
||||
// We just verify the type LiveSessionError.compilerError exists and is
|
||||
// representable; behavioural coverage of non-compileFailed cases is
|
||||
// exercised at the LiveCompiler layer (Phase 142 tests).
|
||||
// exercised at the LiveCompiler layer.
|
||||
let err: LiveSessionError = LiveSessionError.compilerError(.swiftcNotFound)
|
||||
#expect(String(describing: err).contains("swiftc"))
|
||||
}
|
||||
|
||||
@@ -74,9 +74,9 @@ struct LiveSessionTests {
|
||||
#expect(session.lastSnippetMessage == "async hello")
|
||||
}
|
||||
|
||||
/// Phase 203 runtime guard: a snippet driven through `compileAndRunAsync` that calls
|
||||
/// Runtime guard: a snippet driven through `compileAndRunAsync` that calls
|
||||
/// `context.play(_:)` actually adds and tracks a synth. `context.play` → `engine.add` is
|
||||
/// `@MainActor` (Phase 201); `compileAndRunAsync` resumes the snippet entry on the main
|
||||
/// `@MainActor`; `compileAndRunAsync` resumes the snippet entry on the main
|
||||
/// actor (not the nonisolated executor it suspends on), so this exercises that hop.
|
||||
@Test
|
||||
func asyncCompileAndRunPlaysAndTracksSynth() async throws {
|
||||
|
||||
@@ -72,8 +72,8 @@ struct LyrebirdScratchModelTests {
|
||||
func runInvalidSnippetSurfacesUserCoordinateDiagnostics() async throws {
|
||||
let session: LiveSession = makeSession()
|
||||
// `let x: Int = "nope"` — guaranteed type-check error on the first row
|
||||
// of the user body. Phase 144 maps the wrapped-source line back to
|
||||
// user line 1.
|
||||
// of the user body. The diagnostic parser maps the wrapped-source line
|
||||
// back to user line 1.
|
||||
let model: LyrebirdScratchModel = LyrebirdScratchModel(
|
||||
session: session,
|
||||
initialText: "let x: Int = \"nope\"\n"
|
||||
|
||||
Reference in New Issue
Block a user