Skip to content

Commit 994a071

Browse files
authored
Merge pull request #12002 from slavapestov/hash-value-test
Fix stdlib/NSObject test -- hashValue is a signed integer
2 parents 80698a0 + 837c6f1 commit 994a071

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/stdlib/NSObject.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ print("\(s1.hashValue)")
133133
print("\(s1.hash)")
134134
print("done NSMutableString hashValue")
135135
// CHECK: NSMutableString hashValue
136-
// CHECK-NEXT: [[H1:[0-9]+]]
136+
// CHECK-NEXT: [[H1:(-)?[0-9]+]]
137137
// CHECK-NEXT: [[H1]]
138-
// CHECK-NEXT: [[H2:[0-9]+]]
138+
// CHECK-NEXT: [[H2:(-)?[0-9]+]]
139139
// CHECK-NEXT: [[H2]]
140140
// CHECK-NEXT: done NSMutableString hashValue
141141

@@ -153,7 +153,7 @@ printHashValue(nh, "nh")
153153
print("done NoisyHash hashValue")
154154
// CHECK: NoisyHash hashValue
155155
// CHECK-NEXT: so hash
156-
// CHECK-NEXT: nh hashes to {{[0-9]+}}
156+
// CHECK-NEXT: nh hashes to {{(-)?[0-9]+}}
157157
// CHECK: done NoisyHash hashValue
158158

159159

0 commit comments

Comments
 (0)