From 9ff4b06c11468f8e62f356a0bf3de38b89ee4081 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Tue, 13 Nov 2018 11:25:39 +0100 Subject: [PATCH 1/3] Separate tests from core. --- .../BaselineOfHashtable.class.st | 13 ++++++++++++- .../DictionarySpeedTest.class.st | 2 +- .../HashBagTest.class.st | 2 +- .../HashSetTest.class.st | 2 +- .../HashTableTest.class.st | 2 +- .../IdentityHashBagTest.class.st | 2 +- .../IdentityHashSetTest.class.st | 2 +- .../IdentityHashTableTest.class.st | 2 +- .../WeakHashSetTest.class.st | 2 +- .../WeakKeyHashTableTest.class.st | 2 +- .../WeakKeyIdentityHashTableTest.class.st | 2 +- src/Hashtable-Tests/package.st | 1 + 12 files changed, 23 insertions(+), 11 deletions(-) rename src/{Hashtable => Hashtable-Tests}/DictionarySpeedTest.class.st (99%) rename src/{Hashtable => Hashtable-Tests}/HashBagTest.class.st (97%) rename src/{Hashtable => Hashtable-Tests}/HashSetTest.class.st (98%) rename src/{Hashtable => Hashtable-Tests}/HashTableTest.class.st (99%) rename src/{Hashtable => Hashtable-Tests}/IdentityHashBagTest.class.st (97%) rename src/{Hashtable => Hashtable-Tests}/IdentityHashSetTest.class.st (97%) rename src/{Hashtable => Hashtable-Tests}/IdentityHashTableTest.class.st (98%) rename src/{Hashtable => Hashtable-Tests}/WeakHashSetTest.class.st (95%) rename src/{Hashtable => Hashtable-Tests}/WeakKeyHashTableTest.class.st (99%) rename src/{Hashtable => Hashtable-Tests}/WeakKeyIdentityHashTableTest.class.st (99%) create mode 100644 src/Hashtable-Tests/package.st diff --git a/src/BaselineOfHashtable/BaselineOfHashtable.class.st b/src/BaselineOfHashtable/BaselineOfHashtable.class.st index 4753ba0..3bfe68a 100644 --- a/src/BaselineOfHashtable/BaselineOfHashtable.class.st +++ b/src/BaselineOfHashtable/BaselineOfHashtable.class.st @@ -10,5 +10,16 @@ Class { { #category : #baseline } BaselineOfHashtable >> baseline: spec [ - spec for: #common do: [ "Packages" spec package: 'Hashtable' ] + spec + for: #common + do: [ + "Packages" + spec + package: 'Hashtable'; + package: 'Hashtable-Tests' with: [ spec requires: #('Hashtable') ]. + + "Groups" + spec + group: 'Core' with: #('Hashtable'); + group: 'Tests' with: #('Hashtable-Tests') ] ] diff --git a/src/Hashtable/DictionarySpeedTest.class.st b/src/Hashtable-Tests/DictionarySpeedTest.class.st similarity index 99% rename from src/Hashtable/DictionarySpeedTest.class.st rename to src/Hashtable-Tests/DictionarySpeedTest.class.st index 8ada19c..55016c6 100644 --- a/src/Hashtable/DictionarySpeedTest.class.st +++ b/src/Hashtable-Tests/DictionarySpeedTest.class.st @@ -5,7 +5,7 @@ Class { 'stepsize', 'testsize' ], - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #finding } diff --git a/src/Hashtable/HashBagTest.class.st b/src/Hashtable-Tests/HashBagTest.class.st similarity index 97% rename from src/Hashtable/HashBagTest.class.st rename to src/Hashtable-Tests/HashBagTest.class.st index 18b2034..7d58fff 100644 --- a/src/Hashtable/HashBagTest.class.st +++ b/src/Hashtable-Tests/HashBagTest.class.st @@ -4,7 +4,7 @@ Class { #instVars : [ 'bag' ], - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #running } diff --git a/src/Hashtable/HashSetTest.class.st b/src/Hashtable-Tests/HashSetTest.class.st similarity index 98% rename from src/Hashtable/HashSetTest.class.st rename to src/Hashtable-Tests/HashSetTest.class.st index 30eb08b..27150bc 100644 --- a/src/Hashtable/HashSetTest.class.st +++ b/src/Hashtable-Tests/HashSetTest.class.st @@ -4,7 +4,7 @@ Class { #instVars : [ 'set' ], - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #'as yet unclassified' } diff --git a/src/Hashtable/HashTableTest.class.st b/src/Hashtable-Tests/HashTableTest.class.st similarity index 99% rename from src/Hashtable/HashTableTest.class.st rename to src/Hashtable-Tests/HashTableTest.class.st index 5c6f7b7..a9b3e8e 100644 --- a/src/Hashtable/HashTableTest.class.st +++ b/src/Hashtable-Tests/HashTableTest.class.st @@ -5,7 +5,7 @@ Class { 'table', 'testsize' ], - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #running } diff --git a/src/Hashtable/IdentityHashBagTest.class.st b/src/Hashtable-Tests/IdentityHashBagTest.class.st similarity index 97% rename from src/Hashtable/IdentityHashBagTest.class.st rename to src/Hashtable-Tests/IdentityHashBagTest.class.st index f10f46c..1df70c9 100644 --- a/src/Hashtable/IdentityHashBagTest.class.st +++ b/src/Hashtable-Tests/IdentityHashBagTest.class.st @@ -4,7 +4,7 @@ Class { #instVars : [ 'bag' ], - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #running } diff --git a/src/Hashtable/IdentityHashSetTest.class.st b/src/Hashtable-Tests/IdentityHashSetTest.class.st similarity index 97% rename from src/Hashtable/IdentityHashSetTest.class.st rename to src/Hashtable-Tests/IdentityHashSetTest.class.st index 018e5e6..ead8f6b 100644 --- a/src/Hashtable/IdentityHashSetTest.class.st +++ b/src/Hashtable-Tests/IdentityHashSetTest.class.st @@ -4,7 +4,7 @@ Class { #instVars : [ 'set' ], - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #running } diff --git a/src/Hashtable/IdentityHashTableTest.class.st b/src/Hashtable-Tests/IdentityHashTableTest.class.st similarity index 98% rename from src/Hashtable/IdentityHashTableTest.class.st rename to src/Hashtable-Tests/IdentityHashTableTest.class.st index d165c1e..7831896 100644 --- a/src/Hashtable/IdentityHashTableTest.class.st +++ b/src/Hashtable-Tests/IdentityHashTableTest.class.st @@ -5,7 +5,7 @@ Class { 'table', 'testsize' ], - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #running } diff --git a/src/Hashtable/WeakHashSetTest.class.st b/src/Hashtable-Tests/WeakHashSetTest.class.st similarity index 95% rename from src/Hashtable/WeakHashSetTest.class.st rename to src/Hashtable-Tests/WeakHashSetTest.class.st index c2bd48a..43b8301 100644 --- a/src/Hashtable/WeakHashSetTest.class.st +++ b/src/Hashtable-Tests/WeakHashSetTest.class.st @@ -1,7 +1,7 @@ Class { #name : #WeakHashSetTest, #superclass : #HashSetTest, - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #running } diff --git a/src/Hashtable/WeakKeyHashTableTest.class.st b/src/Hashtable-Tests/WeakKeyHashTableTest.class.st similarity index 99% rename from src/Hashtable/WeakKeyHashTableTest.class.st rename to src/Hashtable-Tests/WeakKeyHashTableTest.class.st index a148a53..96a9252 100644 --- a/src/Hashtable/WeakKeyHashTableTest.class.st +++ b/src/Hashtable-Tests/WeakKeyHashTableTest.class.st @@ -5,7 +5,7 @@ Class { 'table', 'testsize' ], - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #running } diff --git a/src/Hashtable/WeakKeyIdentityHashTableTest.class.st b/src/Hashtable-Tests/WeakKeyIdentityHashTableTest.class.st similarity index 99% rename from src/Hashtable/WeakKeyIdentityHashTableTest.class.st rename to src/Hashtable-Tests/WeakKeyIdentityHashTableTest.class.st index d845781..465f4ca 100644 --- a/src/Hashtable/WeakKeyIdentityHashTableTest.class.st +++ b/src/Hashtable-Tests/WeakKeyIdentityHashTableTest.class.st @@ -5,7 +5,7 @@ Class { 'table', 'testsize' ], - #category : #'Hashtable-Test' + #category : #'Hashtable-Tests' } { #category : #running } diff --git a/src/Hashtable-Tests/package.st b/src/Hashtable-Tests/package.st new file mode 100644 index 0000000..e854a86 --- /dev/null +++ b/src/Hashtable-Tests/package.st @@ -0,0 +1 @@ +Package { #name : #'Hashtable-Tests' } From af7b83d2e14f5a6fedade9947e9dc3e8a481df0b Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Tue, 13 Nov 2018 11:28:58 +0100 Subject: [PATCH 2/3] Add gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6b357f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +**/.DS_Store +.DS_STORE \ No newline at end of file From b1402844729b860cfc9833e6253b34adacce6452 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Tue, 13 Nov 2018 11:29:09 +0100 Subject: [PATCH 3/3] Enable travis --- .smalltalk.ston | 8 ++++++++ .travis.yml | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 .smalltalk.ston create mode 100644 .travis.yml diff --git a/.smalltalk.ston b/.smalltalk.ston new file mode 100644 index 0000000..9a38f70 --- /dev/null +++ b/.smalltalk.ston @@ -0,0 +1,8 @@ +SmalltalkCISpec { + #loading : [ + SCIMetacelloLoadSpec { + #baseline : 'Hashtable', + #directory : 'src' + } + ] +} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..426e1bc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: smalltalk +sudo: false + +os: +- linux + +smalltalk: + - Pharo-7.0 \ No newline at end of file