mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
DeclhTest: Fix string interpolation
Bug: T314096 Change-Id: I1c2a11c1481ca7d8e91e9c0468600ace9038e333
This commit is contained in:
parent
7b90132b49
commit
6081e9b01a
|
@ -76,9 +76,9 @@ class DeclhTest extends MediaWikiUnitTestCase {
|
|||
public function testSubscriptsForFontMod() {
|
||||
$mods = [ 'rm','it','cal','bf' ];
|
||||
foreach ( $mods as $mod ) {
|
||||
$f = new Declh( "\\${mod}", new TexArray( new Literal( 'a' ) ) );
|
||||
$this->assertEquals( [ "\\math${mod}{a}" ], $f->extractSubscripts(),
|
||||
"Should extract subscripts for ${mod} font modification" );
|
||||
$f = new Declh( "\\{$mod}", new TexArray( new Literal( 'a' ) ) );
|
||||
$this->assertEquals( [ "\\math{$mod}{a}" ], $f->extractSubscripts(),
|
||||
"Should extract subscripts for {$mod} font modification" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue