Project

General

Profile

« Previous | Next » 

Revision 9ce6c08c

Added by st0012 (Stan Lo) about 2 years ago

[ruby/irb] Add assertion for dynamic_prompt's assertion execution
(https://github.com/ruby/irb/pull/586)

Because the assertions for dynamic_prompt lives inside a block given to
RubyLex, they could be skipped unnoticed if the setup is not correct.

This commit adds a simple assertion to check if the block was actually
executed.