Skip tests that are known to fail

* don't return on skipped tests
* add some additional non math test cases

Change-Id: Ia389141693a2e2ed6dea4294549674402e109d64
This commit is contained in:
Moritz Schubotz (physikerwelt) 2022-11-27 15:07:09 +01:00
parent a1a5457473
commit 7ecce2a104
No known key found for this signature in database
GPG key ID: F803DB146DDF36C3

View file

@ -78,6 +78,8 @@ class EnWikiFormulaeTest extends MediaWikiUnitTestCase {
"e9f6be4c2ba14f4866fe4263bf5c6a0f", # (i) \mathcal{G} × \mathcal{H}" probably unicode
"f31d13eca12a0db895b7062491b44886", # (k) Markdown
"f338c7dea84103c7be9626def39d1c7f", # (i) Z^{X × Y} probably unicode
"658f88ad3ea4ff14e7b35b0efda8535e", # (i) no math, wikitext.
"e5e470bd2eaad8eaa35708534f5927f7", # (i) no math, wikitext
];
protected function setUp(): void {
@ -279,7 +281,6 @@ class EnWikiFormulaeTest extends MediaWikiUnitTestCase {
public function testAllEnWikiFormulae() {
if ( !$this->ACTIVE ) {
$this->markTestSkipped( "All MediaWiki formulae en test not active and skipped. This is expected." );
return;
}
$texVC = new TexVC();
@ -291,6 +292,9 @@ class EnWikiFormulaeTest extends MediaWikiUnitTestCase {
$title = $testcase["inputhash"];
$f = $testcase["input"];
try {
if ( in_array( $title, $this->knownBadHashesPHP ) ) {
continue;
}
$result = $texVC->check( $testcase["input"], [
"debug" => false,
"usemathrm" => false,