Skip to content

Should review generateEvaluatedTests_UnclompletedNested and friends #976

@Ducasse

Description

@Ducasse

The code looks strange.
In particular the return at the end of the method

generateEvaluatedTests_UnclompletedNested
	| template tests|
	template := 'test{1}_UnclompletedNested
	"Auto generated by self class>>#generateEvaluatedTests_UnclompletedNested"
	| res |
	res := ( self inlineParse:''{2}aa{4}bbbbcc{3}'') first.
	self assert: res printString equals: ({5} new children: \{
		MicTextBlock2 new bodystring: ''aa{4}bbbbcc'' \}) printString
	'.
	tests := { 
		{ 'Bold'. BoldMarkup. BoldMarkup. ItalicMarkup. MicBoldFormatBlock}.
		{ 'Italic'. ItalicMarkup. ItalicMarkup. StrikeMarkup. MicItalicFormatBlock}.
		{ 'Strike'. StrikeMarkup. StrikeMarkup. BoldMarkup. MicStrikeFormatBlock }
	 }.
	^ tests do: [ :t | self compile: (template format: t ) classified: 'test generated']

in addition the template refers to unknown classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions