phantomstring: Use locally verifiable strategy for unittestability
This commit is contained in:
parent
ff3d22e397
commit
e8be3d2546
@ -47,10 +47,9 @@ impl Situation for SitStrPhantom {
|
|||||||
CommonStrCmdResult::OnlyWithQuotes(consult) => {
|
CommonStrCmdResult::OnlyWithQuotes(consult) => {
|
||||||
match consult.tri {
|
match consult.tri {
|
||||||
Transition::Flush | Transition::FlushPopOnEof => {
|
Transition::Flush | Transition::FlushPopOnEof => {
|
||||||
return Ok(WhatNow{
|
if is_horizon_lengthenable {
|
||||||
tri: Transition::FlushPopOnEof,
|
return Ok(flush(0));
|
||||||
pre: 0, len: 0, alt: Some(b"\"")
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
Transition::Pop | Transition::Replace(_) => {}
|
Transition::Pop | Transition::Replace(_) => {}
|
||||||
Transition::Push(_) => {
|
Transition::Push(_) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user