[+swift-dev list] We use -verify mode to test warnings—you can see this a lot 
in tests with "expected-warning". The way to test for fix-its is to add 
"{{M-N=newtext}}" after the diagnostic text, where M and N are the start and 
end column numbers of the replacement (a half-open range). For an insertion, 
the column numbers will be the same; for a removal, the new text will be empty.

Thanks for picking this up!
Jordan


> On Jun 13, 2017, at 07:37, Dmitry Venikov <quo...@gmail.com> wrote:
> 
> Hello, I have a question about https://bugs.swift.org/browse/SR-4949 
> <https://bugs.swift.org/browse/SR-4949> and would be happy if you could 
> answer. How do I test warnings and fix-its (fixItRemove)? Thank you.
> 

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to