Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

</div>

![Terminal demo: Python fit() code and verified 2,366 to 1,376 token savings from the first frame, followed by Core-first processing and optional Tokenfold Select. Select illustration only.](https://raw.githubusercontent.com/snchimata/tokenfold/main/docs/assets/tokenfold-demo.gif)
![Terminal demo: Python fit() code and verified 2,366 to 1,376 token savings from the first frame, followed by Core-first processing and optional Tokenfold Select. Select illustration only.](https://raw.githubusercontent.com/snchimata/tokenfold/a5aafaf9fb48047ed03e42e9cc379de49118b25d/docs/assets/tokenfold-demo.gif)

<details>
<summary><strong>Demo scope and regeneration</strong></summary>
Expand Down
5 changes: 5 additions & 0 deletions python-tests/test_readme_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ class ReadmeLayout(unittest.TestCase):
def setUp(self):
self.text = (ROOT / 'README.md').read_text(encoding='utf-8')

def test_demo_url_is_pinned_to_an_immutable_commit(self):
url = re.search(r'!\[Terminal demo:[^\]]+\]\(([^)]+)\)', self.text).group(1)
self.assertRegex(url, r'^https://raw\.githubusercontent\.com/snchimata/tokenfold/'
r'[0-9a-f]{40}/docs/assets/tokenfold-demo\.gif$')

def test_common_path_and_visible_limits(self):
self.assertTrue(self.text.isascii())
self.assertEqual(self.text.count('Exact decode proves data recovery'), 1)
Expand Down
Loading