groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: minor refactor: fix test for JDK12
Date Tue, 26 Mar 2019 11:44:56 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk 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 4422a34  minor refactor: fix test for JDK12
4422a34 is described below

commit 4422a342b586d392d88544780cfff47be37c25f2
Author: Paul King <paulk@asert.com.au>
AuthorDate: Tue Mar 26 21:44:23 2019 +1000

    minor refactor: fix test for JDK12
---
 src/test/groovy/transform/stc/TypeInferenceSTCTest.groovy | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/test/groovy/transform/stc/TypeInferenceSTCTest.groovy b/src/test/groovy/transform/stc/TypeInferenceSTCTest.groovy
index f95ccc9..e9acc12 100644
--- a/src/test/groovy/transform/stc/TypeInferenceSTCTest.groovy
+++ b/src/test/groovy/transform/stc/TypeInferenceSTCTest.groovy
@@ -423,7 +423,9 @@ class TypeInferenceSTCTest extends StaticTypeCheckingTestCase {
         '''
         def inft = method.code.statements[0].expression.leftExpression.getNodeMetaData(StaticTypesMarker.DECLARATION_INFERRED_TYPE)
         assert inft instanceof WideningCategories.LowestUpperBoundClassNode
-        assert inft.interfaces as Set == [ClassHelper.make(Comparable), ClassHelper.make(Serializable)]
as Set
+        [Comparable, Serializable].each {
+            assert ClassHelper.make(it) in inft.interfaces
+        }
 
         assertScript '''
             void method() {


Mime
View raw message