diff --git a/tests/phpunit/unit/WikiTexVC/MMLmappings/BaseParsingTest.php b/tests/phpunit/unit/WikiTexVC/MMLmappings/BaseParsingTest.php index c8b4698c0..5f17e5f93 100644 --- a/tests/phpunit/unit/WikiTexVC/MMLmappings/BaseParsingTest.php +++ b/tests/phpunit/unit/WikiTexVC/MMLmappings/BaseParsingTest.php @@ -6,6 +6,8 @@ use MediaWiki\Extension\Math\WikiTexVC\MMLmappings\BaseParsing; use MediaWiki\Extension\Math\WikiTexVC\Nodes\DQ; use MediaWiki\Extension\Math\WikiTexVC\Nodes\Fun1; use MediaWiki\Extension\Math\WikiTexVC\Nodes\Literal; +use MediaWiki\Extension\Math\WikiTexVC\Nodes\Matrix; +use MediaWiki\Extension\Math\WikiTexVC\Nodes\TexArray; use PHPUnit\Framework\TestCase; /** @@ -32,6 +34,33 @@ class BaseParsingTest extends TestCase { $this->assertStringContainsString( 'assertStringContainsString( 'a', $result ); + } + + public function testBoldSymbol() { + $node = new Fun1( + '\\boldsymbol', + ( new Literal( 'a' ) ) + ); + $result = BaseParsing::boldsymbol( $node, [], null, 'boldsymbol' ); + $this->assertStringContainsString( 'mathvariant="bold-italic"', $result ); + } + + public function testCancel() { + $node = new Fun1( + '\\cancel', + ( new Literal( 'a' ) ) + ); + $result = BaseParsing::cancel( $node, [], null, 'cancel', 'something' ); + $this->assertStringContainsString( 'a', + $result ); + } + public function testUnderOver() { $node = new Fun1( '\\overline',