-
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.
Add unit test for HTML encoding. (#64)
Co-authored-by: David Steppenbeck <[email protected]>
- Loading branch information
1 parent
fbd6344
commit 941c04e
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) | ||
} | ||
|
||
} |