diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-05-29 18:50:12 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-05-29 19:51:49 +0200 |
commit | 2919a6a503f7b369154d6eb787023a1fe58a9ad4 (patch) | |
tree | d2d1a4a73d67471a5ae62b394f6055aa5288f601 /common/maps/scratch_test.go | |
parent | 432885c499849efb29d3e50196f377fe0e908333 (diff) |
common/maps: Add Scratch.Values
Fixes #7335
Diffstat (limited to 'common/maps/scratch_test.go')
-rw-r--r-- | common/maps/scratch_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/maps/scratch_test.go b/common/maps/scratch_test.go index c2c436e40..40df3bb6b 100644 --- a/common/maps/scratch_test.go +++ b/common/maps/scratch_test.go @@ -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") } |