[Repo Assist] Add tests for begin..end expressions and auto-property edge cases#3299
Draft
github-actions[bot] wants to merge 1 commit intomainfrom
Draft
Conversation
- BeginEndTests.fs: add 4 new tests covering value bindings, function bodies, match branches, and comments inside begin..end blocks - AutoPropertiesTests.fs: add 2 new tests covering attributes on auto-properties and static auto-properties with explicit types All 2745 existing tests continue to pass. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
28 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 This is an automated PR from Repo Assist.
Summary
Adds 6 new tests to two under-covered test files to improve test suite coverage and document expected formatting behaviour.
BeginEndTests.fs(was 2 tests → now 6)begin end in value bindingbegin..endin a let-binding valuebegin end in function bodybegin..endas a function body resultbegin end in match branchbegin..endin each arm of a match expressionbegin end with comment insidebegin..endblock containing a line commentAutoPropertiesTests.fs(was 4 tests → now 6)auto-property with attribute[(DefaultValue)]attribute on the preceding line of amember valstatic auto-property with explicit typestatic member valwith an explicit type annotationRationale
Both files had very few tests (2 and 4 respectively). These additions document common F# constructs that were not explicitly covered and act as regression guards for those formatting paths.
Test Status
fantomaschanges needed)