-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving suggestion tests over to NUnit #7235
Conversation
I see failures like:
for tests where I concatenate the output like in this case :
where the source was:
What should I do in this scenario? |
@MecuSorin you can run this test in F# Interactive and use message from there (or debug this tests in VS if you on Windows) |
Ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks great overall.
"The type 'AbstractClas' is not defined." | ||
|
||
|
||
//TODO This was marked with SCFLAGS="--vserrors" in tests/fsharpqa/Source/Warnings/env.lst file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this comment, and all of the others. --vserrors tells the compiler to print the error range. And the underlying fsharpqa framework already did that, so the developer who wrote the test added something redundant.
Kevin
"The record label 'Field1' is not defined." | ||
|
||
|
||
///TODO Check if the second error message is correct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment can be removed:
We could improve the error message in this situation to something like the previous error, which would be helpful but that is a separate issue.
Did you intend to access the indexer via d.[index] instead?````
This output is generated by the RTM compiler
C:\temp>fsc foo3.fs
Microsoft (R) F# Compiler version 10.5.0.0 for F# 4.6
Copyright (c) Microsoft Corporation. All Rights Reserved.
foo3.fs(2,9): error FS3217: This value is not a function and cannot be applied. Did you intend to access the indexer via d.[index] instead?
foo3.fs(4,9): error FS0003: This value is not a function and cannot be applied.
foo3.fs(7,10): error FS3217: This expression is not a function and cannot be applied. Did you intend to access the indexer via expr.[index] instead?
C
Marked the tests (all Suggestions) that I will move to NUnit