Skip to content

Faulty code snippet: test evaluation#13223

Merged
MarcusDenker merged 6 commits intopharo-project:Pharo12from
privat:faulty-code-snippet-execution
Mar 31, 2023
Merged

Faulty code snippet: test evaluation#13223
MarcusDenker merged 6 commits intopharo-project:Pharo12from
privat:faulty-code-snippet-execution

Conversation

@privat
Copy link
Contributor

@privat privat commented Mar 31, 2023

Evaluation of random strings (the evil eval) can be performed with OpalCompiler evaluate: aString.
CodeSnippet did not have tests to check it, it is now done.

Because only scripts can be evaluated (not method definitions), a subclass RBCodeSnippetScriptingTest is created that matrix tests only on scripts.

Some cleanup is performed on RBCodeSnippet. Especially, a new method testExecuteBlock: to factorize the execution and check of a snippet byproduct.

@MarcusDenker MarcusDenker merged commit fd49814 into pharo-project:Pharo12 Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants