Skip to content

Rename the XPath test fixture xp.tst to xp.txt - #394

Merged
naitoh merged 1 commit into
ruby:masterfrom
botamochi0x12:chore/renaming-xpath-fixture-to-txt
Dec 1, 2026
Merged

naitoh merged 1 commit into
ruby:masterfrom
botamochi0x12:chore/renaming-xpath-fixture-to-txt

Conversation

@botamochi0x12

Copy link
Copy Markdown
Contributor

GitHub lists Scilab in this repository's languages only because of test/data/xp.tst, so this renames it to xp.txt.

Details

xp.tst is a plain text list of XPath expressions, one per line, that test_more in test/xpath/test_base.rb reads. .tst is a common extension for test files, and GAP and Scilab use it for their test scripts. Linguist gives .tst to both GAP and Scilab. Its heuristic picks GAP only when the file contains gap> , so every other .tst file becomes Scilab. Linguist detects .txt as Text, which is not counted in the language stats.

I also considered marking the file in .gitattributes, and dropped that idea.

I checked it with github-linguist 9.7.0 locally. Before this change, the breakdown matched GitHub's (Ruby 770,325 bytes, XSLT 13,913, Scilab 745). After it, only Ruby and XSLT are left, and xp.txt is reported as Text. git log --follow test/data/xp.txt still traces the file back to its import in 2010.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@naitoh
naitoh merged commit 4d3849b into ruby:master Dec 1, 2026
71 checks passed
@naitoh

naitoh commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants