source-academy / js-slang

Implementations of sublanguages of JavaScript, TypeScript, Scheme and Python
https://source-academy.github.io/source/
Apache License 2.0
70 stars 104 forks source link

1562 stepper incorrect evaluation sequence in program #1563

Closed hanscau closed 8 months ago

hanscau commented 8 months ago

Added checks for reducible second statements in accordance to the stepper specs.

Reduce second statements if it is reducible, keeping the first statement on the buffer.

Fix code highlighting due to shifting of statements

Added tests and updated old tests to reflect new changes.

coveralls commented 8 months ago

Pull Request Test Coverage Report for Build 8123123453

Details


Files with Coverage Reduction New Missed Lines %
src/stepper/stepper.ts 1 64.97%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 8019514395: 0.1%
Covered Lines: 10353
Relevant Lines: 12219

💛 - Coveralls