diff --git a/Tests/SlipstreamTests/StateTests.swift b/Tests/SlipstreamTests/StateTests.swift new file mode 100644 index 0000000..14c63eb --- /dev/null +++ b/Tests/SlipstreamTests/StateTests.swift @@ -0,0 +1,17 @@ +import Testing + +import Slipstream + +private struct StateView: View { + let string: String + var body: some View { + Text(string) + } +} + +struct StateTests { + @Test func rendersProvidedString() throws { + try #expect(renderHTML(StateView(string: "Hello, world!")) == "Hello, world!") + try #expect(renderHTML(StateView(string: "Slipstream")) == "Slipstream") + } +} diff --git a/Tests/SlipstreamTests/TextTests.swift b/Tests/SlipstreamTests/Views/TextInputAndOutput/TextTests.swift similarity index 100% rename from Tests/SlipstreamTests/TextTests.swift rename to Tests/SlipstreamTests/Views/TextInputAndOutput/TextTests.swift