Skip to content

Commit

Permalink
[CM-733] Use more descriptive unit test names
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pospesel authored and mpospese committed Jun 20, 2022
1 parent ff267d0 commit 32de5d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import XCTest
@testable import YCoreUI

final class FormViewControllerTests: XCTestCase {
func test() {
func testLoadView() {
let sut = makeSUT()
// we expect content view to have three subviews (label + textField + button)
XCTAssertEqual(sut.contentView.subviews.count, 3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class UIColorRgbValueTests: XCTestCase {
(UIColor(rgb: 0xad1dea), "ab", false, "abad1dea")
]

func test() {
func testRgbDisplayString() {
testCases.forEach {
XCTAssertEqual($0.color.rgbDisplayString(prefix: $0.prefix, isUppercase: $0.isUppercase), $0.output)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class UIEdgeInsetsDirectionalTests: XCTestCase {
UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 16)
]

func test() {
func testDirectional() {
testCases.forEach {
let directional = $0.directionalInsets
XCTAssertEqual($0.top, directional.top)
Expand Down

0 comments on commit 32de5d4

Please sign in to comment.