phantomstring: Use locally verifiable strategy for unittestability

This commit is contained in:
Andreas Nordal 2019-08-02 22:41:43 +02:00
parent ff3d22e397
commit e8be3d2546

@ -47,10 +47,9 @@ impl Situation for SitStrPhantom {
CommonStrCmdResult::OnlyWithQuotes(consult) => {
match consult.tri {
Transition::Flush | Transition::FlushPopOnEof => {
return Ok(WhatNow{
tri: Transition::FlushPopOnEof,
pre: 0, len: 0, alt: Some(b"\"")
});
if is_horizon_lengthenable {
return Ok(flush(0));
}
}
Transition::Pop | Transition::Replace(_) => {}
Transition::Push(_) => {