You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/01/02 03:25:04 UTC

[groovy] branch master updated: Tweak `NamedValueTest`

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 0907ece  Tweak `NamedValueTest`
0907ece is described below

commit 0907ece79bd0989e3955d9288475a89193af1a28
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Jan 2 11:23:41 2022 +0800

    Tweak `NamedValueTest`
---
 src/spec/test/groovy/lang/NamedValueTest.groovy | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/spec/test/groovy/lang/NamedValueTest.groovy b/src/spec/test/groovy/lang/NamedValueTest.groovy
index a6578db..f5c7093 100644
--- a/src/spec/test/groovy/lang/NamedValueTest.groovy
+++ b/src/spec/test/groovy/lang/NamedValueTest.groovy
@@ -40,6 +40,12 @@ class NamedValueTest {
         set.add(nv1)
         set.add(nv2)
         assert 1 == set.size()
+
+        def nv3 = new NamedValue('foo2', 'bar')
+        def nv4 = new NamedValue('foo', 'bar2')
+        set.add(nv3)
+        set.add(nv4)
+        assert 3 == set.size()
     }
 
     @Test