Skip to content

Commit 1c69cae

Browse files
committed
add simple unit test case
1 parent 17dec2c commit 1c69cae

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

CodeEdit.xcodeproj/project.pbxproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
2813F93927ECC4C300E305E4 /* NavigatorSidebarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 287776E627E3413200D46668 /* NavigatorSidebarView.swift */; };
5252
2816F594280CF50500DD548B /* CodeEditSymbols in Frameworks */ = {isa = PBXBuildFile; productRef = 2816F593280CF50500DD548B /* CodeEditSymbols */; };
5353
283BDCBD2972EEBD002AFF81 /* Package.resolved in Resources */ = {isa = PBXBuildFile; fileRef = 283BDCBC2972EEBD002AFF81 /* Package.resolved */; };
54+
283BDCC52972F236002AFF81 /* AcknowledgementsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 283BDCC42972F236002AFF81 /* AcknowledgementsTests.swift */; };
5455
2847019E27FDDF7600F87B6B /* OutlineView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2847019D27FDDF7600F87B6B /* OutlineView.swift */; };
5556
285FEC7027FE4B9800E57D53 /* OutlineTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 285FEC6F27FE4B9800E57D53 /* OutlineTableViewCell.swift */; };
5657
286471AB27ED51FD0039369D /* ProjectNavigatorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 286471AA27ED51FD0039369D /* ProjectNavigatorView.swift */; };
@@ -416,6 +417,7 @@
416417
20EBB50C280C383700F3A5DA /* LanguageType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LanguageType.swift; sourceTree = "<group>"; };
417418
20EBB50E280C389300F3A5DA /* FileInspectorModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileInspectorModel.swift; sourceTree = "<group>"; };
418419
283BDCBC2972EEBD002AFF81 /* Package.resolved */ = {isa = PBXFileReference; lastKnownFileType = text; name = Package.resolved; path = CodeEdit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved; sourceTree = "<group>"; };
420+
283BDCC42972F236002AFF81 /* AcknowledgementsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AcknowledgementsTests.swift; sourceTree = "<group>"; };
419421
2847019D27FDDF7600F87B6B /* OutlineView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OutlineView.swift; sourceTree = "<group>"; };
420422
285FEC6D27FE4B4A00E57D53 /* OutlineViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OutlineViewController.swift; sourceTree = "<group>"; };
421423
285FEC6F27FE4B9800E57D53 /* OutlineTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OutlineTableViewCell.swift; sourceTree = "<group>"; };
@@ -866,6 +868,14 @@
866868
path = DefaultThemes;
867869
sourceTree = "<group>";
868870
};
871+
283BDCC22972F211002AFF81 /* Acknowledgements */ = {
872+
isa = PBXGroup;
873+
children = (
874+
283BDCC42972F236002AFF81 /* AcknowledgementsTests.swift */,
875+
);
876+
path = Acknowledgements;
877+
sourceTree = "<group>";
878+
};
869879
285FEC6C27FE4AC700E57D53 /* OutlineView */ = {
870880
isa = PBXGroup;
871881
children = (
@@ -1398,6 +1408,7 @@
13981408
587B60FE293416C900D5CD8F /* Features */ = {
13991409
isa = PBXGroup;
14001410
children = (
1411+
283BDCC22972F211002AFF81 /* Acknowledgements */,
14011412
4EE96EC82960562000FFBEA8 /* Documents */,
14021413
583E527429361B39001AB554 /* CodeEditUI */,
14031414
583E526929361B39001AB554 /* Welcome */,
@@ -2749,6 +2760,7 @@
27492760
583E528C29361B39001AB554 /* CodeEditUITests.swift in Sources */,
27502761
587B60F82934124200D5CD8F /* WorkspaceClientTests.swift in Sources */,
27512762
587B61012934170A00D5CD8F /* UnitTests_Extensions.swift in Sources */,
2763+
283BDCC52972F236002AFF81 /* AcknowledgementsTests.swift in Sources */,
27522764
4EE96ECB2960565E00FFBEA8 /* DocumentsUnitTests.swift in Sources */,
27532765
4EE96ECE296059E000FFBEA8 /* NSHapticFeedbackPerformerMock.swift in Sources */,
27542766
587B612E293419B700D5CD8F /* CodeFileTests.swift in Sources */,
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// AcknowledgementsTests.swift
3+
// CodeEditTests
4+
//
5+
// Created by Lukas Pistrol on 14.01.23.
6+
//
7+
8+
import XCTest
9+
@testable import CodeEdit
10+
11+
final class AcknowledgementsTests: XCTestCase {
12+
13+
var model: AcknowledgementsViewModel!
14+
15+
override func setUpWithError() throws {
16+
model = .init()
17+
}
18+
19+
override func tearDownWithError() throws {
20+
model = nil
21+
}
22+
23+
func testAcknowledgementsNotEmpty() throws {
24+
XCTAssertFalse(model.acknowledgements.isEmpty)
25+
}
26+
}

0 commit comments

Comments
 (0)