maxwellinked commited on
Commit
f2467cd
·
verified ·
1 Parent(s): 76b7466

Match semantic tests to formatted archive counts

Browse files

Keep the existing semantic assertions while matching the generated human-readable thousands separators in the 1,051-file README counts.

Files changed (1) hide show
  1. tools/test_semantic_consistency.py +2 -2
tools/test_semantic_consistency.py CHANGED
@@ -251,7 +251,7 @@ class SemanticConsistencyTests(unittest.TestCase):
251
  audio_count = sum(row["has_audio"].lower() == "true" for row in active)
252
  percentage = 100 * audio_count / len(active)
253
  readme = (ROOT / "README.md").read_text(encoding="utf-8")
254
- expected = rf"{audio_count} of\s+{len(active)}, or {percentage:.1f}%"
255
  self.assertRegex(readme, re.compile(expected))
256
 
257
  def test_readme_headline_matches_active_index_facts(self) -> None:
@@ -267,7 +267,7 @@ class SemanticConsistencyTests(unittest.TestCase):
267
  f"{latest.strftime('%B')} {latest.day}, {latest.year}"
268
  )
269
 
270
- self.assertIn(f"{len(active)} indexed video files", normalized)
271
  self.assertIn(date_span, normalized)
272
  self.assertIn(f"{total_bytes:,} indexed video bytes", normalized)
273
 
 
251
  audio_count = sum(row["has_audio"].lower() == "true" for row in active)
252
  percentage = 100 * audio_count / len(active)
253
  readme = (ROOT / "README.md").read_text(encoding="utf-8")
254
+ expected = rf"{audio_count:,} of\s+{len(active):,}, or {percentage:.1f}%"
255
  self.assertRegex(readme, re.compile(expected))
256
 
257
  def test_readme_headline_matches_active_index_facts(self) -> None:
 
267
  f"{latest.strftime('%B')} {latest.day}, {latest.year}"
268
  )
269
 
270
+ self.assertIn(f"{len(active):,} indexed video files", normalized)
271
  self.assertIn(date_span, normalized)
272
  self.assertIn(f"{total_bytes:,} indexed video bytes", normalized)
273