common/maps: Add Scratch.Values

Fixes #7335
This commit is contained in:
Bjørn Erik Pedersen
2020-05-29 18:50:12 +02:00
parent 432885c499
commit 2919a6a503
3 changed files with 18 additions and 1 deletions

View File

@@ -47,6 +47,9 @@ func TestScratchAdd(t *testing.T) {
scratch.Add("scratch", scratch)
_, err := scratch.Add("scratch", scratch)
m := scratch.Values()
c.Assert(m, qt.HasLen, 5)
if err == nil {
t.Errorf("Expected error from invalid arithmetic")
}