Tighten Rm level validation
- Require the Rm level to stage or remove the tracked deleted file instead of treating the initial deleted worktree state as solved. - Add a regression test proving read-only commands such as `ls` do not complete the Rm level. - Verify the full JVM level solution suite with the compiled host Git runtime.
This commit is contained in:
@@ -37,6 +37,16 @@ class GitSandboxEngineTest {
|
||||
assertFalse(updatedRepo.files.any { it.name == "deleteme.rb" })
|
||||
}
|
||||
|
||||
@Test
|
||||
fun rmLevelIsNotSolvedByReadOnlyCommands() {
|
||||
val level = rmLevel()
|
||||
val repo = level.setup()
|
||||
|
||||
val (updatedRepo, _) = GitSandboxEngine.execute(repo, "ls")
|
||||
|
||||
assertFalse(level.validator(updatedRepo, "ls"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun gitMvExpandsWildcardSourcesIntoDestinationDirectory() {
|
||||
val repo = RepoState(
|
||||
|
||||
Reference in New Issue
Block a user