We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5b131a commit d680396Copy full SHA for d680396
test/stdlib/Synchronization/Atomics/WordPair.swift
@@ -45,6 +45,16 @@ suite.test("basics") {
45
let value1 = WordPair(first: .max, second: 0)
46
expectEqual(value1.first, .max)
47
expectEqual(value1.second, 0)
48
+
49
+ let c0 = WordPair(first: 0, second: 0)
50
+ let c1 = WordPair(first: 1, second: 0)
51
+ let c2 = WordPair(first: 2, second: 0)
52
+ let c3 = WordPair(first: 0, second: 1)
53
+ expectFalse(c0 < c0)
54
+ expectTrue(c0 < c1)
55
+ expectTrue(c0 < c2)
56
+ expectTrue(c0 < c3)
57
+ expectFalse(c1 < c0)
58
}
59
60
} // if #available(SwiftStdlib 6.0, *)
0 commit comments