diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-06 12:53:24 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-06 12:53:24 +0200 |
| commit | f4edef273e4501a28cac7cb43fa7ad6f224fcb4a (patch) | |
| tree | 9bbe13e1af4d3e235d46345de1dd74989bf1d0b0 /MapTests | |
| parent | 54f89bcd1a7fb0b92b65d8c0ea3847d635e11133 (diff) | |
Use templates in file menu
Diffstat (limited to 'MapTests')
| -rw-r--r-- | MapTests/MapDocumentTests.swift | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/MapTests/MapDocumentTests.swift b/MapTests/MapDocumentTests.swift index 7ae93fc..f2ef032 100644 --- a/MapTests/MapDocumentTests.swift +++ b/MapTests/MapDocumentTests.swift @@ -21,19 +21,9 @@ import UniformTypeIdentifiers struct MapDocumentTests { @Test func testMapDocumentInitialization() async throws { - let document = MapDocument() - #expect( - document.text == """ - Anchor (60, 5) [x] - Node A (78, 23) - Node B (40, 30) [square] - Node C (65, 70) - - Anchor -> Node A - Anchor -> Node B - Node A -> Node C - Node B -> Node C - """) + let document = MapDocument(text: nil) + // Should contain either the default template content or the built-in content + #expect(document.text.contains("Anchor") || document.text.contains("Node")) } @Test func testMapDocumentInitializationWithText() async throws { |