mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
Merge "Treat colon as operator"
This commit is contained in:
commit
5fbcff7819
|
@ -33,6 +33,7 @@ class OperatorDictionary {
|
|||
'-=' => [ " exports.MO.BIN4" ],
|
||||
'->' => [ " exports.MO.BIN5" ],
|
||||
'.' => [ " [0, 3], MmlNode_js_1.TEXCLASS.PUNCT\"], { separator=> [ true }]" ],
|
||||
':' => [ " [1, 2], MmlNode_js_1.TEXCLASS.REL\"], null]" ],
|
||||
'/' => [ " exports.MO.ORD11" ],
|
||||
'//' => [ " OPDEF(1\"], 1)" ],
|
||||
'/=' => [ " exports.MO.BIN4" ],
|
||||
|
|
|
@ -100,4 +100,10 @@ class LiteralTest extends MediaWikiUnitTestCase {
|
|||
'double vertical line should render as special operator.' );
|
||||
}
|
||||
|
||||
public function testColon() {
|
||||
$n = new Literal( ':' );
|
||||
$this->assertStringContainsString( ':</mo>', $n->renderMML(),
|
||||
'colon should render as special operator.' );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue