groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [43/50] [abbrv] groovy git commit: Fix test case and documentation (closes #458)
Date Thu, 10 Nov 2016 15:14:15 GMT
Fix test case and documentation (closes #458)

`Foo.i` is a field; only `Foo.i.class` could be `int.class`


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/a0875e38
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/a0875e38
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/a0875e38

Branch: refs/heads/parrot
Commit: a0875e385edcffa96b37ba9fc5b72a08be877d85
Parents: 084e733
Author: Erich Schubert <kno10@users.noreply.github.com>
Authored: Mon Nov 7 11:16:50 2016 +0100
Committer: paulk <paulk@asert.com.au>
Committed: Mon Nov 7 21:19:29 2016 +1000

----------------------------------------------------------------------
 src/spec/test/PrimitiveTest.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/a0875e38/src/spec/test/PrimitiveTest.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test/PrimitiveTest.groovy b/src/spec/test/PrimitiveTest.groovy
index 1c3d333..2780fba 100644
--- a/src/spec/test/PrimitiveTest.groovy
+++ b/src/spec/test/PrimitiveTest.groovy
@@ -26,7 +26,7 @@ class PrimitiveTest extends GroovyTestCase {
             }
 
             assert Foo.class.getDeclaredField('i').type == int.class
-            assert Foo.i != int.class && Foo.i.class == Integer.class
+            assert Foo.i.class != int.class && Foo.i.class == Integer.class
             // end::primitive_references[]
         '''
     }


Mime
View raw message