Repository navigation
Conversation
Split and unify had only argument-check tests; round trips were checked by hand with an external app. FwdataBuilder and SplitUnifyHarness make a test for a new edge case a few lines: build a small .fwdata, split, optionally edit the split files, unify, and compare objects by guid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stub LangProject that split and unify need now lives in one place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Callers no longer have to match the lowercase string format of guids in fwdata files; the harness parses and formats them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
I'm not sure I love the approach taken in CustomPropertyCacheTests to build the fwdata file, I started working on some simple e2e split/unify tests and those are using the same approach. Do we keep doing this? or do we build up the fwdata file some other way for these tests? Maybe via LCM?
copied from my note on #432
AI summary
Summary
Split and unify had only argument-check tests. This adds a small harness so a round-trip test for a new edge case is a few lines. Stacked on #432.
Adding an edge-case test:
Found while building the stub, by removing each LangProject-owned object one at a time. These look like latent bugs, not real requirements:
WriteNestedListFileIfItExists), butTextCorpusBoundedContextService.FlattenContextalways loads all three list files, so the unify throwsFileNotFoundException.DataNotebook.ntbkwith an empty header, and the unify throwsArgumentNullExceptioninCmObjectFlatteningService.LexDb, MorphologicalData, MsFeatureSystem, PhFeatureSystem, PhonologicalData and the AnalyzingAgents element make the split throw (NRE or
Sequence contains no elements). Every real project has them, so those are real requirements, though the errors could be clearer.Evidence
After: 528 passed, 0 failed
Merge Danger
Door: two-way
Test code only.
Blast Radius: none
No production code changes.
Test plan
dotnet test src/LibFLExBridge-ChorusPluginTests/LibFLExBridge-ChorusPluginTests.csproj -c Release "-p:SolutionDir=<repo root>\": 528 passed🤖 Generated with Claude Code
This change is