/** * @group bbg */ public function test_convert_shorthand_delims() { $text = '\\foo \\bar $latex \\foo \\bar$ $latex\\foo \bar$ foo'; $expected = '\\foo \\bar {{{LATEX_DELIM_INLINE_OPEN}}} \\foo \\bar{{{LATEX_DELIM_INLINE_CLOSE}}} {{{LATEX_DELIM_DISPLAY_OPEN}}}\\foo \bar{{{LATEX_DELIM_DISPLAY_CLOSE}}} foo'; $pf = new \WeBWorK\Server\Util\ProblemFormatter(); $this->assertSame($expected, $pf->convert_delims($text)); }