Skip to content

Commit 78933ac

Browse files
committed
Fix UniqueIDTests issue
1 parent 4660dfa commit 78933ac

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Tests/OpenSwiftUICoreTests/Data/Other/UniqueIDTests.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ import Testing
77

88
struct UniqueIDTests {
99
@Test
10-
func exmpla() {
10+
func invalid() {
1111
#expect(UniqueID.invalid.value == 0)
12-
let initialID = UniqueID()
13-
#expect(UniqueID().value == initialID.value + 1)
1412
}
1513

14+
@Test
15+
func different() {
16+
let id1 = UniqueID()
17+
let id2 = UniqueID()
18+
#expect(id1.value != id2.value)
19+
}
1620
}

0 commit comments

Comments
 (0)