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/09/05 13:03:06 UTC

[groovy] branch GROOVY_4_0_X updated: Tweak test

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

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


The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
     new 6ddb20880a Tweak test
6ddb20880a is described below

commit 6ddb20880aab20c98a066ce7ca8bf7c65700d934
Author: Daniel Sun <su...@apache.org>
AuthorDate: Mon Sep 5 21:02:47 2022 +0800

    Tweak test
---
 src/test/groovy/bugs/Groovy9103.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/groovy/bugs/Groovy9103.groovy b/src/test/groovy/bugs/Groovy9103.groovy
index 9e58032556..d2be689410 100644
--- a/src/test/groovy/bugs/Groovy9103.groovy
+++ b/src/test/groovy/bugs/Groovy9103.groovy
@@ -67,7 +67,7 @@ final class Groovy9103 {
     @Test
     void testClone3() {
         Object obj = new Tuple1('abc')
-        assert obj.clone()
+        assert obj.clone().getClass() === Tuple1.class
     }
 
     @Test