diff --git a/packages/PoppyPrint-Core.package/PPFormatter.class/class/formatString.class.noPattern.notifying.with..st b/packages/PoppyPrint-Core.package/PPFormatter.class/class/formatString.class.noPattern.notifying.with..st index 509781c..cc53416 100644 --- a/packages/PoppyPrint-Core.package/PPFormatter.class/class/formatString.class.noPattern.notifying.with..st +++ b/packages/PoppyPrint-Core.package/PPFormatter.class/class/formatString.class.noPattern.notifying.with..st @@ -1,7 +1,7 @@ format formatString: aString class: aClass noPattern: aBoolean notifying: anObject with: aPPFormatterConfig - | formatter methodNode | + | formatter methodNode result | self example: 'string test' receiver: [PPFormatter] @@ -19,4 +19,10 @@ formatString: aString class: aClass noPattern: aBoolean notifying: anObject with initForNode: methodNode; config: aPPFormatterConfig. methodNode accept: formatter. - ^ aBoolean ifTrue: [self stripMethodPattern: formatter contents] ifFalse: [formatter contents] \ No newline at end of file + + result := aBoolean + ifTrue: [self stripMethodPattern: formatter contents] + ifFalse: [formatter contents]. + aPPFormatterConfig formatToMaxLineWidth ifTrue: [result := PPWindowFormatter new format: result withWindowWidth: aPPFormatterConfig maxLineWidth]. + + ^ result \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPFormatter.class/methodProperties.json b/packages/PoppyPrint-Core.package/PPFormatter.class/methodProperties.json index 2c71224..d0fba7f 100644 --- a/packages/PoppyPrint-Core.package/PPFormatter.class/methodProperties.json +++ b/packages/PoppyPrint-Core.package/PPFormatter.class/methodProperties.json @@ -5,7 +5,7 @@ "format:in:notifying:decorated:" : "tobe 3/10/2021 15:45", "formatCategory:" : "tobe 3/10/2021 14:59", "formatClass:" : "tobe 3/10/2021 14:59", - "formatMethod:" : "tobe 3/10/2021 13:32", + "formatMethod:" : "JW 6/1/2022 19:34", "formatPackage:" : "tobe 3/10/2021 14:59", "formatString:class:noPattern:" : "tobe 3/10/2021 15:47", "formatString:class:noPattern:notifying:" : "KD 6/15/2022 16:11", @@ -60,7 +60,7 @@ "visitLiteralNode:" : "tobe 3/11/2021 09:09", "visitLiteralVariableNode:" : "tobe 3/10/2021 14:58", "visitMessageNode:" : "KD 6/15/2022 16:11", - "visitMethodNode:" : "tobe 3/11/2021 11:38", + "visitMethodNode:" : "JW 6/1/2022 20:51", "visitNode:" : "tobe 3/11/2021 10:00", "visitReturnNode:" : "KD 6/15/2022 16:05", "visitTempVariableNode:" : "tobe 3/10/2021 14:58", diff --git a/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/formatToMaxLineWidth..st b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/formatToMaxLineWidth..st new file mode 100644 index 0000000..20168f8 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/formatToMaxLineWidth..st @@ -0,0 +1,4 @@ +accessing +formatToMaxLineWidth: aBoolean + + formatToMaxLineWidth := aBoolean \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/formatToMaxLineWidth.st b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/formatToMaxLineWidth.st new file mode 100644 index 0000000..f2112a4 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/formatToMaxLineWidth.st @@ -0,0 +1,4 @@ +accessing +formatToMaxLineWidth + + ^ formatToMaxLineWidth ifNil: [formatToMaxLineWidth := false] \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/maxLineWidth..st b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/maxLineWidth..st new file mode 100644 index 0000000..85d5293 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/maxLineWidth..st @@ -0,0 +1,4 @@ +accessing +maxLineWidth: anInteger + + maxLineWidth := anInteger \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/maxLineWidth.st b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/maxLineWidth.st new file mode 100644 index 0000000..cc9fbe0 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/instance/maxLineWidth.st @@ -0,0 +1,4 @@ +accessing +maxLineWidth + + ^ maxLineWidth ifNil: [maxLineWidth := 83] \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPFormatterConfig.class/methodProperties.json b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/methodProperties.json index d1250b6..de126e4 100644 --- a/packages/PoppyPrint-Core.package/PPFormatterConfig.class/methodProperties.json +++ b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/methodProperties.json @@ -2,6 +2,10 @@ "class" : { "default" : "KD 6/15/2022 16:11" }, "instance" : { + "formatToMaxLineWidth" : "JW 6/1/2022 20:57", + "formatToMaxLineWidth:" : "JW 6/23/2022 10:53", + "maxLineWidth" : "JW 6/1/2022 19:28", + "maxLineWidth:" : "JW 6/23/2022 10:52", "spaceBeforeComma" : "KD 6/15/2022 16:07", "spaceBeforeComma:" : "YH 6/2/2022 14:16", "spaceBeforePointInArray" : "Alexander Ungefug 6/1/2022 15:59", diff --git a/packages/PoppyPrint-Core.package/PPFormatterConfig.class/properties.json b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/properties.json index 8d7bee4..8eb3d50 100644 --- a/packages/PoppyPrint-Core.package/PPFormatterConfig.class/properties.json +++ b/packages/PoppyPrint-Core.package/PPFormatterConfig.class/properties.json @@ -7,7 +7,9 @@ "commentStamp" : "", "instvars" : [ "spaceBeforeComma", - "spaceBeforePointInArray" ], + "spaceBeforePointInArray", + "formatToMaxLineWidth", + "maxLineWidth" ], "name" : "PPFormatterConfig", "pools" : [ ], diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/README.md b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/README.md new file mode 100644 index 0000000..e69de29 diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/charAt..st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/charAt..st new file mode 100644 index 0000000..a883dde --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/charAt..st @@ -0,0 +1,4 @@ +accessing +charAt: aNumber + + ^ string at: aNumber \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/charAtIndex.st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/charAtIndex.st new file mode 100644 index 0000000..b7fe0ab --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/charAtIndex.st @@ -0,0 +1,4 @@ +accessing +charAtIndex + + ^ self charAt: index \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/countTabs.st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/countTabs.st new file mode 100644 index 0000000..a2606ee --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/countTabs.st @@ -0,0 +1,10 @@ +helper +countTabs + + | i | + i := index + 1. + tabCount := 0. + + [i <= string size and: [(self charAt: i) = Character tab]] whileTrue: [ + tabCount := tabCount + 1. + i := i + 1] \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/format.withWindowWidth..st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/format.withWindowWidth..st new file mode 100644 index 0000000..a5ff6ec --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/format.withWindowWidth..st @@ -0,0 +1,19 @@ +formatting +format: aString withWindowWidth: aNumber + + aString isEmpty ifTrue: [^ aString]. + + string := aString. + maxWidth := aNumber. + self reset. + + [index <= string size] whileTrue: [ | seperator | + seperator := self charAtIndex. + self getNextWord. + + seperator = Character cr ifTrue: [self putNewlineAndCountTabs] ifFalse: [ + wordWidth + lineWidth + 1 > maxWidth + ifTrue: [self putIndentedNewlineAndWord] + ifFalse: [self putSeperatorAndWord]]]. + + ^ resultStream contents \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/getNextWord.st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/getNextWord.st new file mode 100644 index 0000000..1080c18 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/getNextWord.st @@ -0,0 +1,13 @@ +helper +getNextWord + + | i | + i := index + 1. + wordWidth := 0. + wordStream reset. + + [i <= string size and: [inString or: [(seperators occurrencesOf: (self charAt: i)) = 0]]] whileTrue: [ + wordStream nextPut: (self charAt: i). + (self charAt: i) = $' ifTrue: [inString := inString not]. + wordWidth := wordWidth + 1. + i := i + 1] \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/putIndentedNewlineAndWord.st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/putIndentedNewlineAndWord.st new file mode 100644 index 0000000..2439b06 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/putIndentedNewlineAndWord.st @@ -0,0 +1,8 @@ +put +putIndentedNewlineAndWord + + resultStream nextPut: Character cr; + next: tabCount + 1 put: Character tab; + nextPutAll: wordStream contents. + lineWidth := tabCount + 1 + wordWidth. + index := index + wordWidth + 1 \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/putNewlineAndCountTabs.st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/putNewlineAndCountTabs.st new file mode 100644 index 0000000..dcb4dd8 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/putNewlineAndCountTabs.st @@ -0,0 +1,17 @@ +put +putNewlineAndCountTabs + + self countTabs. + + resultStream nextPut: Character cr; + next: tabCount put: Character tab. + tabCount = 0 + ifTrue: [ + resultStream nextPutAll: wordStream contents. + index := index + wordWidth + 1] + ifFalse: [ + index := index + tabCount. + self getNextWord. + resultStream nextPutAll: wordStream contents. + index := index + wordWidth + 1]. + lineWidth := tabCount + wordWidth \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/putSeperatorAndWord.st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/putSeperatorAndWord.st new file mode 100644 index 0000000..a5e3d18 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/putSeperatorAndWord.st @@ -0,0 +1,7 @@ +put +putSeperatorAndWord + + resultStream nextPut: self charAtIndex; + nextPutAll: wordStream contents. + lineWidth := lineWidth + wordWidth + 1. + index := index + wordWidth + 1 \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/reset.st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/reset.st new file mode 100644 index 0000000..2c8be06 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/reset.st @@ -0,0 +1,13 @@ +initialize +reset + + seperators := { Character cr. Character tab. Character space}. + resultStream := '' writeStream. + wordStream := '' writeStream. + lineWidth := 0. + wordWidth := 0. + tabCount := 0. + index := 1. + inString := false. + + self skipToEndOfFirstWord \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/skipToEndOfFirstWord.st b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/skipToEndOfFirstWord.st new file mode 100644 index 0000000..4841d12 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/instance/skipToEndOfFirstWord.st @@ -0,0 +1,8 @@ +initialize +skipToEndOfFirstWord + + [index <= string size and: [inString or: [(seperators occurrencesOf: self charAtIndex) = 0]]] whileTrue: [ + resultStream nextPut: self charAtIndex. + self charAtIndex = $' ifTrue: [inString := inString not]. + lineWidth := lineWidth + 1. + index := index + 1] \ No newline at end of file diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/methodProperties.json b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/methodProperties.json new file mode 100644 index 0000000..0083347 --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/methodProperties.json @@ -0,0 +1,14 @@ +{ + "class" : { + }, + "instance" : { + "charAt:" : "JW 5/31/2022 11:05", + "charAtIndex" : "JW 5/31/2022 11:05", + "countTabs" : "JW 5/31/2022 11:12", + "format:withWindowWidth:" : "JW 6/1/2022 20:52", + "getNextWord" : "JW 6/1/2022 20:09", + "putIndentedNewlineAndWord" : "JW 6/23/2022 11:45", + "putNewlineAndCountTabs" : "JW 6/23/2022 11:46", + "putSeperatorAndWord" : "JW 6/23/2022 11:47", + "reset" : "JW 6/1/2022 20:05", + "skipToEndOfFirstWord" : "JW 6/1/2022 20:10" } } diff --git a/packages/PoppyPrint-Core.package/PPWindowFormatter.class/properties.json b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/properties.json new file mode 100644 index 0000000..bb65cdf --- /dev/null +++ b/packages/PoppyPrint-Core.package/PPWindowFormatter.class/properties.json @@ -0,0 +1,23 @@ +{ + "category" : "PoppyPrint-Core", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + "string", + "resultStream", + "wordStream", + "seperators", + "lineWidth", + "wordWidth", + "tabCount", + "index", + "maxWidth", + "inString" ], + "name" : "PPWindowFormatter", + "pools" : [ + ], + "super" : "Object", + "type" : "normal" } diff --git a/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/getConfigWindowWidth..st b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/getConfigWindowWidth..st new file mode 100644 index 0000000..d6aa221 --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/getConfigWindowWidth..st @@ -0,0 +1,4 @@ +helper +getConfigWindowWidth: aNumber + + ^ PPFormatterConfig default formatToMaxLineWidth: true; maxLineWidth: aNumber. \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSmallWindowWidth1.st b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSmallWindowWidth1.st new file mode 100644 index 0000000..3311453 --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSmallWindowWidth1.st @@ -0,0 +1,13 @@ +tests - WindowWidth +testSmallWindowWidth1 + + self canFormat: +'test + + aaa aa aa aaa' + as: +'test + + aaa aa aa + aaa' + with: (self getConfigWindowWidth: 10) \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSmallWindowWidth2.st b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSmallWindowWidth2.st new file mode 100644 index 0000000..e2d26fc --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSmallWindowWidth2.st @@ -0,0 +1,13 @@ +tests - WindowWidth +testSmallWindowWidth2 + + self canFormat: +'test + + aaa aa aaa aaa' + as: +'test + + aaa aa + aaa aaa' + with: (self getConfigWindowWidth: 10) \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSmallWindowWidth3.st b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSmallWindowWidth3.st new file mode 100644 index 0000000..acdfbcc --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/instance/testSmallWindowWidth3.st @@ -0,0 +1,12 @@ +tests - WindowWidth +testSmallWindowWidth3 + + self canFormat: +'test + + ''aaa aa aaa aaa''' + as: +'test + + ''aaa aa aaa aaa''' + with: (self getConfigWindowWidth: 10) \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPFormatterTest.class/methodProperties.json b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/methodProperties.json index 07e86b5..93b391b 100644 --- a/packages/PoppyPrint-Tests.package/PPFormatterTest.class/methodProperties.json +++ b/packages/PoppyPrint-Tests.package/PPFormatterTest.class/methodProperties.json @@ -12,6 +12,7 @@ "exampleMorphDoLayoutIn" : "tobe 3/11/2021 09:00", "getConfigSpacesBeforeComma" : "YH 6/2/2022 10:20", "getConfigSpacesBeforePointInArray" : "KD 6/15/2022 15:56", + "getConfigWindowWidth:" : "JW 6/15/2022 15:47", "testAllMethods" : "KD 6/15/2022 16:11", "testBinaryMessageChain" : "tobe 3/11/2021 10:58", "testBinaryMessageChainWithParenthesis" : "tobe 3/11/2021 13:33", @@ -43,6 +44,9 @@ "testReindentMultilineComment" : "tobe 3/11/2021 10:08", "testShortArray" : "tobe 3/11/2021 10:41", "testShortCaseOf" : "tobe 3/11/2021 10:40", + "testSmallWindowWidth1" : "JW 6/23/2022 10:56", + "testSmallWindowWidth2" : "JW 6/23/2022 10:56", + "testSmallWindowWidth3" : "JW 6/23/2022 10:57", "testSpaceBeforeComma" : "YH 6/2/2022 10:46", "testSpaceBeforePointInArray" : "KD 6/15/2022 15:57", "testSubexpressionComment" : "tobe 3/11/2021 10:08", diff --git a/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/README.md b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/README.md new file mode 100644 index 0000000..e69de29 diff --git a/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/canFormat.toDefaultWindowWidth..st b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/canFormat.toDefaultWindowWidth..st new file mode 100644 index 0000000..37c01f0 --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/canFormat.toDefaultWindowWidth..st @@ -0,0 +1,4 @@ +helper +canFormat: aString toDefaultWindowWidth: anotherString + + self assert: anotherString equals: (PPWindowFormatter new format: aString withWindowWidth: 83) \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/canFormat.toZeroWindowWidth..st b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/canFormat.toZeroWindowWidth..st new file mode 100644 index 0000000..eb36607 --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/canFormat.toZeroWindowWidth..st @@ -0,0 +1,4 @@ +helper +canFormat: aString toZeroWindowWidth: anotherString + + self assert: anotherString equals: (PPWindowFormatter new format: aString withWindowWidth: 0) \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToDefaultWindowWidth1.st b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToDefaultWindowWidth1.st new file mode 100644 index 0000000..4520a7b --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToDefaultWindowWidth1.st @@ -0,0 +1,13 @@ +tests +testFormattingToDefaultWindowWidth1 + + self canFormat: + 'test + ertad aweasd wed + asdasd + asdasd asdasd asd asd as dd' + toDefaultWindowWidth: + 'test + ertad aweasd wed + asdasd + asdasd asdasd asd asd as dd' \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToDefaultWindowWidth2.st b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToDefaultWindowWidth2.st new file mode 100644 index 0000000..45c91bb --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToDefaultWindowWidth2.st @@ -0,0 +1,9 @@ +tests +testFormattingToDefaultWindowWidth2 + + self canFormat: + 'test + abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc' + toDefaultWindowWidth: + 'test + abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc' \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToDefaultWindowWidth3.st b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToDefaultWindowWidth3.st new file mode 100644 index 0000000..dd59109 --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToDefaultWindowWidth3.st @@ -0,0 +1,10 @@ +tests +testFormattingToDefaultWindowWidth3 + + self canFormat: + 'test + abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc' + toDefaultWindowWidth: + 'test + abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc + abc' \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToZeroWidth1.st b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToZeroWidth1.st new file mode 100644 index 0000000..18bdd72 --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/instance/testFormattingToZeroWidth1.st @@ -0,0 +1,20 @@ +tests +testFormattingToZeroWidth1 + + self canFormat: + 'test + ertad aweasd wed + asdasd + asdasd asdasd asd asd as dd' + toZeroWindowWidth: + 'test + ertad + aweasd + wed + asdasd + asdasd + asdasd + asd + asd + as + dd' \ No newline at end of file diff --git a/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/methodProperties.json b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/methodProperties.json new file mode 100644 index 0000000..75bf6b6 --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/methodProperties.json @@ -0,0 +1,10 @@ +{ + "class" : { + }, + "instance" : { + "canFormat:toDefaultWindowWidth:" : "JW 6/23/2022 11:49", + "canFormat:toZeroWindowWidth:" : "JW 6/23/2022 11:49", + "testFormattingToDefaultWindowWidth1" : "JW 6/23/2022 11:49", + "testFormattingToDefaultWindowWidth2" : "JW 6/23/2022 11:49", + "testFormattingToDefaultWindowWidth3" : "JW 6/23/2022 11:49", + "testFormattingToZeroWidth1" : "JW 6/23/2022 11:50" } } diff --git a/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/properties.json b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/properties.json new file mode 100644 index 0000000..42b32bf --- /dev/null +++ b/packages/PoppyPrint-Tests.package/PPWindowFormatterTest.class/properties.json @@ -0,0 +1,14 @@ +{ + "category" : "PoppyPrint-Tests", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + ], + "name" : "PPWindowFormatterTest", + "pools" : [ + ], + "super" : "TestCase", + "type" : "normal" }