-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All Methods regarding spaces and commas are named properly. (Not cont…
…aining inArray anymore) Added a Test checking wether spaces before commas works without Arrays too.
- Loading branch information
1 parent
80a972c
commit 334a4cd
Showing
15 changed files
with
47 additions
and
37 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/PoppyPrint-Core.package/PPFormatter.class/instance/printBinaryMessage.multiLine..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/spaceBeforeComma..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
spaceBeforeComma: anObject | ||
|
||
spaceBeforeComma := anObject. |
5 changes: 5 additions & 0 deletions
5
packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/spaceBeforeComma.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
accessing | ||
spaceBeforeComma | ||
|
||
^ spaceBeforeComma ifNil: [spaceBeforeComma := true]. | ||
|
4 changes: 0 additions & 4 deletions
4
...ages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/spaceBeforeCommaInArray..st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/spaceBeforeCommaInArray.st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...ges/PoppyPrint-Tests.package/PPFormatterTest.class/instance/getConfigSpacesBeforeComma.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
helper | ||
getConfigSpacesBeforeComma | ||
|
||
^ PPFormatterConfig default spaceBeforeComma: true |
4 changes: 0 additions & 4 deletions
4
...pyPrint-Tests.package/PPFormatterTest.class/instance/getConfigSpacesBeforeCommainArray.st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testAllMethods.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSpaceBeforeComma.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
tests - spaces in Array | ||
testSpaceBeforeComma | ||
|
||
self | ||
canFormat: 'test | ||
^ ''0'', ''0'', ''0'', ''0'', ''0'', ''1''' | ||
as: 'test | ||
^ ''0'' , ''0'' , ''0'' , ''0'' , ''0'' , ''1''' | ||
with: self getConfigSpacesBeforeComma |
13 changes: 6 additions & 7 deletions
13
...es/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSpaceBeforeCommaInArray.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
tests - spaces in Array | ||
testSpaceBeforeCommaInArray | ||
|
||
self canFormat: | ||
'test | ||
self | ||
canFormat: 'test | ||
{0, 0, 0, 0, 0, 1}' | ||
as: | ||
'test | ||
{0, 0, 0, 0, 0, 1}' | ||
as: 'test | ||
{0 , 0 , 0 , 0 , 0 , 1}' | ||
with: self getConfigSpacesBeforeCommainArray | ||
{0 , 0 , 0 , 0 , 0 , 1}' | ||
with: self getConfigSpacesBeforeComma |
13 changes: 6 additions & 7 deletions
13
...es/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSpaceBeforePointInArray.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
tests - spaces in Array | ||
testSpaceBeforePointInArray | ||
|
||
self canFormat: | ||
'test | ||
self | ||
canFormat: 'test | ||
{0. 0. 0. 0. 0. 1}' | ||
as: | ||
'test | ||
{0. 0. 0. 0. 0. 1}' | ||
as: 'test | ||
{0 . 0 . 0 . 0 . 0 . 1}' | ||
with: self getConfigSpacesBeforePointinArray | ||
{0 . 0 . 0 . 0 . 0 . 1}' | ||
with: self getConfigSpacesBeforePointinArray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters