Files
NetNewsWire/Modules/RSWeb/Tests/RSWebTests/StringTests.swift
T

19 lines
353 B
Swift

//
// StringTests.swift
// RSWebTests
//
// Created by Brent Simmons on 1/13/18.
// Copyright © 2018 Ranchero Software. All rights reserved.
//
import Testing
@testable import RSWeb
struct StringTests {
@Test func htmlEscaping() {
let s = #"<foo>"bar"&'baz'"#.escapedHTML
#expect(s == "&lt;foo&gt;&quot;bar&quot;&amp;&apos;baz&apos;")
}
}