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