forked from pharo-project/pharo
/
BILiteralArrayExpressionTest.class.st
52 lines (45 loc) · 1.46 KB
/
BILiteralArrayExpressionTest.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Class {
#name : #BILiteralArrayExpressionTest,
#superclass : #BISingleExpressionTest,
#category : #'BlueInk-Tests-Base'
}
{ #category : #configurations }
BILiteralArrayExpressionTest >> basicConfiguration [
^ self contextClass basicNew
formatCommentWithStatements: false
]
{ #category : #tests }
BILiteralArrayExpressionTest >> testByteArrayParenthesis [
| source |
configurationSelector := #basicConfiguration.
source := self formatExpression: '#[1 2 3]'.
self assert: source equals: '#[1 2 3]'
]
{ #category : #tests }
BILiteralArrayExpressionTest >> testNoExtraSpaceArroundParenthesis [
| source |
configurationSelector := #basicConfiguration.
source := self formatExpression: '#( 1 2 3 ) '.
self assert: source equals: '#(1 2 3)'
]
{ #category : #tests }
BILiteralArrayExpressionTest >> testNoExtraSpaceArroundParenthesis2 [
| source |
configurationSelector := #basicConfiguration.
source := self formatExpression: '#[ 1 2 3 ] '.
self assert: source equals: '#[1 2 3]'
]
{ #category : #tests }
BILiteralArrayExpressionTest >> testNoExtraSpaceBetweenValue [
| source |
configurationSelector := #basicConfiguration.
source := self formatExpression: '#(1 2 3)'.
self assert: source equals: '#(1 2 3)'
]
{ #category : #tests }
BILiteralArrayExpressionTest >> testNoExtraSpaceBetweenValue2 [
| source |
configurationSelector := #basicConfiguration.
source := self formatExpression: '#[1 2 3]'.
self assert: source equals: '#[1 2 3]'
]