Skip to content

Commit

Permalink
add test order add language and entry
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Feb 27, 2023
1 parent 38d5ec6 commit 410b751
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ CS18NPropertiesImporterTest >> testImportString [
equals: 'value'
]

{ #category : #'as yet unclassified' }
CS18NPropertiesImporterTest >> testImportStringLanguage [

importer importString: 'property=value'.

self
assert: (i18nModel allWithType: CS18NValue) anyOne language
equals: (i18nModel allWithType: CS18NLanguage) anyOne
]

{ #category : #tests }
CS18NPropertiesImporterTest >> testImportStringWithValueAttributes [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ CS18NPropertiesImporter >> importString: aString [
valueAttributes := self extractModelValueAttributes: modelValue.
modelValue valueVariables addAll: valueAttributes.
model addAll: valueAttributes.
(entryStrategy entryForKey: keyValue key) addValue: modelValue ]
modelValue entry: (entryStrategy entryForKey: keyValue key) ]
]

{ #category : #initialization }
Expand Down

0 comments on commit 410b751

Please sign in to comment.