You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2016/11/07 11:20:03 UTC
groovy git commit: Fix test case and documentation (closes #458)
Repository: groovy
Updated Branches:
refs/heads/master 084e7332e -> a0875e385
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/master
Commit: a0875e385edcffa96b37ba9fc5b72a08be877d85
Parents: 084e733
Author: Erich Schubert <kn...@users.noreply.github.com>
Authored: Mon Nov 7 11:16:50 2016 +0100
Committer: paulk <pa...@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[]
'''
}