Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
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
18 changes: 18 additions & 0 deletions src/Stash-Serialization-Tests/StashTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,24 @@ StashTest >> testString1 [
self assert: source equals: '''hello'''
]

{ #category : #tests }
StashTest >> testString10 [

| object source |
object := #toto.
source := Stash new serialize: object.
self assert: source equals: '#toto'
]

{ #category : #tests }
StashTest >> testString11 [

| object source |
object := #'toto-titi'.
source := Stash new serialize: object.
self assert: source equals: '#''toto-titi'''
]

{ #category : #tests }
StashTest >> testString2 [

Expand Down
1 change: 1 addition & 0 deletions src/Stash-Serialization/String.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ String >> asStashObject [
| correctedString |
correctedString := self copyReplaceAll: '%' with: '%%'.
correctedString := correctedString copyReplaceAll: '<' with: '%<'.
self isSymbol ifTrue: [ correctedString := correctedString asSymbol ].
^ StashObject new
object: correctedString;
yourself
Expand Down