Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
private
asSelectorNode: aSymbol
^ (Smalltalk hasClassNamed: #OCSelectorNode)
ifTrue: [ (Smalltalk classNamed: #OCSelectorNode) value: aSymbol ]
ifFalse: [ aSymbol ]
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ initialize
argument value isCharacter
ifTrue: [ argument replaceWith: (RBLiteralNode value: (String with: argument value)) ] ].
newNode
selector: #subStrings:;
selector: (self asSelectorNode: #subStrings:);
yourself ]
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
testing
expectedFailures
^ #(testFromStringThreeDigit)
^ SystemVersion current major >= 14
ifTrue: [
"three digit color codes are fixed with Pharo 14"
#() ]
ifFalse: [
#(testFromStringThreeDigit) ]
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
testing
testFromStringThreeDigit
"These are all white on Pharo < 14"
self assert: (Color fromString: 'f00') = Color red.
self assert: (Color fromString: 'F00') = Color red.
self assert: (Color fromString: '#f00') = Color red.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ running
setUp

super setUp.
factory := ClassFactoryForTestCase environment: (ClassFactoryForTestCase environment).
factory := SystemVersion current major >= 12
ifTrue: [ ClassFactoryForTestCase environment: (ClassFactoryForTestCase environment) ]
ifFalse: [ ClassFactoryForTestCase new ].
environment := RBClassEnvironment new
Loading