[Tests] NFC: Adjust a couple of improved tests

This commit is contained in:
Pavel Yaskevich
2024-09-11 13:41:00 -07:00
parent 8a918e2369
commit 66981364fe

View File

@@ -53,8 +53,8 @@ func testMixedSignArithmetic() {
Stride(1) - ${T}(0) // expected-error {{}} expected-note {{}}
var y: Stride = 0
y += ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Int'}} {{10-10=Int(}}
y -= ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Int'}} {{10-10=Int(}}
y += ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Stride' (aka 'Int')}} {{10-10=Stride(}}
y -= ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Stride' (aka 'Int')}} {{10-10=Stride(}}
}
% end
}