-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEquals.swift
More file actions
42 lines (34 loc) · 1.4 KB
/
Equals.swift
File metadata and controls
42 lines (34 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//=----------------------------------------------------------------------------=
// This source file is part of the DiffableTextViews open source project.
//
// Copyright (c) 2022 Oscar Byström Ericsson
// Licensed under Apache License, Version 2.0
//
// See http://www.apache.org/licenses/LICENSE-2.0 for license information.
//=----------------------------------------------------------------------------=
#if DEBUG
@testable import DiffableTextKit
import XCTest
//*============================================================================*
// MARK: * Equals x Tests
//*============================================================================*
final class EqualsTextStyleTests: XCTestCase {
//=------------------------------------------------------------------------=
// MARK: Tests
//=------------------------------------------------------------------------=
func test() {
//=--------------------------------------=
// Setup
//=--------------------------------------=
let mock0 = Mock(locale: en_US).equals(0)
let mock1 = Mock(locale: sv_SE).equals(0)
let mock2 = Mock(locale: en_US).equals(1)
//=--------------------------------------=
// Assert
//=--------------------------------------=
XCTAssertEqual( mock0, mock1)
XCTAssertNotEqual(mock0, mock2)
XCTAssertNotEqual(mock1, mock2)
}
}
#endif