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 2015/10/01 20:22:22 UTC

incubator-groovy git commit: tabs to spaces

Repository: incubator-groovy
Updated Branches:
  refs/heads/master 9e36a6496 -> d138df7bd


tabs to spaces


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

Branch: refs/heads/master
Commit: d138df7bde8116115984cdb06baaa7a8177012bd
Parents: 9e36a64
Author: pascalschumacher <pa...@gmx.net>
Authored: Thu Oct 1 20:22:09 2015 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Thu Oct 1 20:22:09 2015 +0200

----------------------------------------------------------------------
 src/spec/test/PackageTest.groovy | 168 +++++++++++++++++-----------------
 1 file changed, 84 insertions(+), 84 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d138df7b/src/spec/test/PackageTest.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test/PackageTest.groovy b/src/spec/test/PackageTest.groovy
index 13915eb..260a127 100644
--- a/src/spec/test/PackageTest.groovy
+++ b/src/spec/test/PackageTest.groovy
@@ -20,114 +20,114 @@ class PackageTest extends GroovyTestCase {
 
     void testPackages() {
         assertScript '''
-			// tag::package_statement[]
-			// defining a package named com.yoursite
-			package com.yoursite
-			// end::package_statement[]
+            // tag::package_statement[]
+            // defining a package named com.yoursite
+            package com.yoursite
+            // end::package_statement[]
 
-			class Foo {
-				
-			}
-			
-			def foo = new Foo()		
-			
-			assert foo != null
-		    assert Foo.class.name == 'com.yoursite.Foo'
-		'''
+            class Foo {
+                
+            }
+            
+            def foo = new Foo()        
+            
+            assert foo != null
+            assert Foo.class.name == 'com.yoursite.Foo'
+        '''
 
         assertScript '''
-			//tag::import_statement[]
-			// importing the class MarkupBuilder
-			import groovy.xml.MarkupBuilder
-			
-			// using the imported class to create an object
-			def xml = new MarkupBuilder()
-			
-			assert xml != null
-			// end::import_statement[]
-		'''
+            //tag::import_statement[]
+            // importing the class MarkupBuilder
+            import groovy.xml.MarkupBuilder
+            
+            // using the imported class to create an object
+            def xml = new MarkupBuilder()
+            
+            assert xml != null
+            // end::import_statement[]
+        '''
     }
 
     void testDefaultImports() {
         assertScript '''
-			// tag::default_import[]
-			new Date()
-			// end::default_import[]
-		'''
+            // tag::default_import[]
+            new Date()
+            // end::default_import[]
+        '''
     }
 
     void testMultipleImportsFromSamePackage() {
         assertScript '''
-			// tag::multiple_import[]
-			import groovy.xml.MarkupBuilder
-			import groovy.xml.StreamingMarkupBuilder
-			
-			def markupBuilder = new MarkupBuilder()
-			
-			assert markupBuilder != null
-			
-			assert new StreamingMarkupBuilder() != null 
-			// end::multiple_import[]
-		'''
+            // tag::multiple_import[]
+            import groovy.xml.MarkupBuilder
+            import groovy.xml.StreamingMarkupBuilder
+            
+            def markupBuilder = new MarkupBuilder()
+            
+            assert markupBuilder != null
+            
+            assert new StreamingMarkupBuilder() != null 
+            // end::multiple_import[]
+        '''
     }
 
     void testStarImports() {
         assertScript '''
-			// tag::star_import[]
-			import groovy.xml.*
-			
-			def markupBuilder = new MarkupBuilder()
-			
-			assert markupBuilder != null
-			
-			assert new StreamingMarkupBuilder() != null
-			
-			// end::star_import[]
-		'''
+            // tag::star_import[]
+            import groovy.xml.*
+            
+            def markupBuilder = new MarkupBuilder()
+            
+            assert markupBuilder != null
+            
+            assert new StreamingMarkupBuilder() != null
+            
+            // end::star_import[]
+        '''
     }
 
     void testStaticImports() {
         assertScript '''
-			// tag::static_imports[]
-			
-			import static Boolean.FALSE
-			
-			assert !FALSE //use directly, without Boolean prefix!
-			
-			// end::static_imports[]
-			
-		'''
+            // tag::static_imports[]
+            
+            import static Boolean.FALSE
+            
+            assert !FALSE //use directly, without Boolean prefix!
+            
+            // end::static_imports[]
+            
+        '''
     }
 
     void testStaticImportWithAs() {
         assertScript '''
-			// tag::static_importswithas[]
-			
-			import static Calendar.getInstance as now
-			
-			assert now().class == Calendar.getInstance().class
-			
-			// end::static_importswithas[]
-		'''
+            // tag::static_importswithas[]
+            
+            import static Calendar.getInstance as now
+            
+            assert now().class == Calendar.getInstance().class
+            
+            // end::static_importswithas[]
+        '''
     }
 
     void testStaticStarImport() {
         assertScript '''
-			// tag::static_importswithstar[]
-			
-			import static java.lang.Math.*
-			
-			assert sin(0) == 0.0
-			assert cos(0) == 1.0
-			
-			// end::static_importswithstar[]
-		'''
+            // tag::static_importswithstar[]
+            
+            import static java.lang.Math.*
+            
+            assert sin(0) == 0.0
+            assert cos(0) == 1.0
+            
+            // end::static_importswithstar[]
+        '''
     }
     
     void testStaticStarImportSameMethodNameDifferentParameterType() {
         assertScript '''
             // tag::static_import_same_method_name_different_parameter_type[]
-			import static java.lang.String.format // <1>
+            import static java.lang.String.format // <1>
 
             class SomeClass {
             
@@ -140,22 +140,22 @@ class PackageTest extends GroovyTestCase {
                     assert new SomeClass().format(Integer.valueOf(1)) == '1'
                 }
             }
-			// end::static_import_same_method_name_different_parameter_type[]
-		'''
+            // end::static_import_same_method_name_different_parameter_type[]
+        '''
     }
     
     void testAliasImport() {
         assertScript '''
-			// tag::alias_import[]
+            // tag::alias_import[]
             import java.util.Date
-			import java.sql.Date as SQLDate
-			
-			Date utilDate = new Date(1000L)
+            import java.sql.Date as SQLDate
+
+            Date utilDate = new Date(1000L)
             SQLDate sqlDate = new SQLDate(1000L)
             
             assert utilDate instanceof java.util.Date
             assert sqlDate instanceof java.sql.Date
-			// end::alias_import[]
-		'''
+            // end::alias_import[]
+        '''
     }
 }