describe_garden: list each plop's position, so a move can keep the layout
Asked to move four tomatoes planted in a column "keeping the same spacing", the live assistant re-laid them as two pairs: the per-plop listing said "north" and "south" and nothing else. Each listed plop (and list_plantings) now carries xCm/yCm in the object's local frame. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
@@ -632,6 +632,10 @@ func TestDescribeGardenGroupsByPlant(t *testing.T) {
|
||||
if e.PlantedAt == "" || e.Version == 0 || e.ID == 0 {
|
||||
t.Errorf("listed plop %+v is missing id, version or date", e)
|
||||
}
|
||||
// The position is what lets a move keep the layout; "south" alone can't.
|
||||
if e.YCM < 100 || (e.XCM != -100 && e.XCM != 0 && e.XCM != 100) {
|
||||
t.Errorf("listed plop %+v doesn't carry the position it was placed at", e)
|
||||
}
|
||||
}
|
||||
|
||||
// The big group's ids are a call away, narrowed to one plant.
|
||||
|
||||
Reference in New Issue
Block a user