aboutsummaryrefslogtreecommitdiff
path: root/Tests/WmapParserTests/DependenciesParserTests.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/WmapParserTests/DependenciesParserTests.swift')
-rw-r--r--Tests/WmapParserTests/DependenciesParserTests.swift16
1 files changed, 8 insertions, 8 deletions
diff --git a/Tests/WmapParserTests/DependenciesParserTests.swift b/Tests/WmapParserTests/DependenciesParserTests.swift
index 88e6e99..356d5d3 100644
--- a/Tests/WmapParserTests/DependenciesParserTests.swift
+++ b/Tests/WmapParserTests/DependenciesParserTests.swift
@@ -4,41 +4,41 @@ import Testing
@Test func shouldParseUndirectedDependency() {
let source = "Smoke -- Fire"
- let result = parse(source)
+ let result = WmapParser.parse(source)
#expect(result.dependencies.count == 1)
#expect(
result.dependencies.first
- == Dependency(fromComponent: "Smoke", toComponent: "Fire", isDirected: false)
+ == WmapParser.Dependency(fromComponent: "Smoke", toComponent: "Fire", isDirected: false)
)
}
@Test func shouldParseDirectedDependency() {
let source = "Cool Thing -> Different Cool Thing"
- let result = parse(source)
+ let result = WmapParser.parse(source)
#expect(result.dependencies.count == 1)
#expect(
result.dependencies.first
- == Dependency(
+ == WmapParser.Dependency(
fromComponent: "Cool Thing", toComponent: "Different Cool Thing", isDirected: true)
)
}
@Test func shouldPreserveCaseInDependencyLabels() {
let source = "SaRcAsM -> Seriousness."
- let result = parse(source)
+ let result = WmapParser.parse(source)
#expect(result.dependencies.count == 1)
#expect(
result.dependencies.first
- == Dependency(fromComponent: "SaRcAsM", toComponent: "Seriousness.", isDirected: true)
+ == WmapParser.Dependency(fromComponent: "SaRcAsM", toComponent: "Seriousness.", isDirected: true)
)
}
@Test func shouldIgnoreWhitespaceInDependencies() {
let source = " loose --TIGHT"
- let result = parse(source)
+ let result = WmapParser.parse(source)
#expect(result.dependencies.count == 1)
#expect(
result.dependencies.first
- == Dependency(fromComponent: "loose", toComponent: "TIGHT", isDirected: false)
+ == WmapParser.Dependency(fromComponent: "loose", toComponent: "TIGHT", isDirected: false)
)
}