mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-20 18:59:07 -05:00
fix: every accepted md5 is its own search word
Recalbox lists accepted md5s joined by commas, and platform pages printed the list as one code span. The site search took it for a single word, so 198 accepted values could not be found. Each value now has its own span.
This commit is contained in:
1 parent
dec0fdc163
commit
77ae9a7f74
2 files changed
+18
-2
No files matched your search
@@ -756,5 +756,18 @@ class ACitationSaysWhoseCodeItIs(unittest.TestCase):
|
||||
"`emu/memory.c:46` (upstream emulator)")
|
||||
|
||||
|
||||
class EveryAcceptedHashIsItsOwnWord(unittest.TestCase):
|
||||
"""Recalbox md5 lists rendered as one comma-joined code span: the site
|
||||
search made one token of it and found none but the first."""
|
||||
|
||||
def test_a_list_is_split(self):
|
||||
from generate_site import _hash_spans
|
||||
|
||||
md5s = ["96cf" + "0" * 28, "d5af" + "0" * 28]
|
||||
text = _hash_spans(",".join(md5s))
|
||||
for md5 in md5s:
|
||||
self.assertIn(f"`{md5}`</span>", text)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user