From 1c021777615790a2b4f0ed6f11a8cd269788c65b Mon Sep 17 00:00:00 2001 From: Johan Brichau Date: Sun, 7 Jan 2024 17:35:52 +0100 Subject: [PATCH] Block and Parens formatting rules moved to the PharoWithStyle project; removed the curly braces rule since it is not applicable anymore --- .../instance/testBlockFormatting.st | 29 ------------------- .../instance/testParensFormatting.st | 16 ---------- .../instance/testUsesCurlyBraceArrays.st | 18 ------------ 3 files changed, 63 deletions(-) delete mode 100644 repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testBlockFormatting.st delete mode 100644 repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testParensFormatting.st delete mode 100644 repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testUsesCurlyBraceArrays.st diff --git a/repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testBlockFormatting.st b/repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testBlockFormatting.st deleted file mode 100644 index a1ad82b5..00000000 --- a/repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testBlockFormatting.st +++ /dev/null @@ -1,29 +0,0 @@ -tests-parsetree -testBlockFormatting - - | class | - class := self defineSubClassOf: #GRObject. - self - compile: 'invalid1 - [:a ]' - in: class. - self - compile: 'invalid2 - [:a | ]' - in: class. - self - compile: 'invalid3 - [ :b]' - in: class. - - self - compile: 'invalid4 - [ :a| ]' - in: class. - self - compile: 'invalid5 - [ :a |a ]' - in: class. - self - runRule: GRBlockFormattingRule - selectors: #(invalid1 invalid2 invalid3 invalid4 invalid5) \ No newline at end of file diff --git a/repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testParensFormatting.st b/repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testParensFormatting.st deleted file mode 100644 index d4c1b96b..00000000 --- a/repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testParensFormatting.st +++ /dev/null @@ -1,16 +0,0 @@ -tests-parsetree -testParensFormatting - - | class | - class := self defineSubClassOf: #GRObject. - self - compile: 'invalid1 - ( 1 + 2)' - in: class. - self - compile: 'invalid2 - (1 + 2 )' - in: class. - self - runRule: GRParensFormattingRule - selectors: #(invalid1 invalid2) \ No newline at end of file diff --git a/repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testUsesCurlyBraceArrays.st b/repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testUsesCurlyBraceArrays.st deleted file mode 100644 index 04f7298e..00000000 --- a/repository/Grease-Tests-Pharo-Slime.package/GRReSlimeTest.class/instance/testUsesCurlyBraceArrays.st +++ /dev/null @@ -1,18 +0,0 @@ -tests-parsetree -testUsesCurlyBraceArrays - - | class | - (self canParse: 'foo { self foo. self bar }') - ifFalse: [ ^ self ]. - class := self defineSubClassOf: #GRObject. - self - compile: 'invalid - ^ { self foo. self bar }' - in: class. - self - compile: 'valid - ^ Array new' - in: class. - self - runRule: GRUsesCurlyBraceArraysRule - selectors: #(invalid) \ No newline at end of file