-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Steppenbeck
committed
Mar 16, 2020
1 parent
fbd6344
commit 94c0f4b
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// HTMLEncodingTests.swift | ||
// DiagnosticsTests | ||
// | ||
// Created by David Steppenbeck on 2020/03/16. | ||
// Copyright © 2020 WeTransfer. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
@testable import Diagnostics | ||
|
||
final class HTMLEncodingTests: XCTestCase { | ||
|
||
/// It should correctly transform a String to HTML. | ||
func testAddingHTMLEncoding() { | ||
let value = "<CONTENT>" | ||
let expectedHTML = "<CONTENT>" | ||
XCTAssertEqual(value.addingHTMLEncoding(), expectedHTML) | ||
} | ||
|
||
} |