Skip to content

Consolidate Julia conversion files and tests - #109

Merged
jswent merged 1 commit into
libsemigroups:mainfrom
jswent:codex/consolidate-julia-conversions
Oct 8, 2026
Merged

jswent merged 1 commit into
libsemigroups:mainfrom
jswent:codex/consolidate-julia-conversions

Conversation

@jswent

@jswent jswent commented Oct 8, 2026

Copy link
Copy Markdown
Member

The Julia conversion API and tests are spread across six small files each. Consolidate them into src/to.jl and test/test_to.jl, and update the package and test runner includes. Destination headings keep the API easy to navigate. All method definitions, docstrings, test bodies, and execution order are preserved; the C++ files stay separate.

Closes #108.

Validation on Julia 1.12.6 / macOS arm64, using the CMake-built local wrapper with libsemigroups 3.6.1:

  • julia --startup-file=no --project=. test/test_to.jl: 86 passed.
  • julia --startup-file=no --project=. test/runtests.jl: 757,937 passed; 5 existing skips.
  • julia --startup-file=no --project=. test/check_jll.jl: 4 passed against the published JLLs.
  • JuliaFormatter 2.14.0: all four new or modified Julia files pass.
  • Exact-text comparison confirmed retention and ordering of every method/docstring and test body; git diff --check passes.

AI assistance: OpenAI Codex prepared the consolidation and assisted with validation and review.

Combine the six conversion API files into src/to.jl and their test files
into test/test_to.jl. Preserve method definitions, docstrings, test bodies,
and their existing order, and update the include sites.

AI assistance: OpenAI Codex prepared and verified this consolidation.

Co-authored-by: Codex <noreply@openai.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.83333% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@27c9905). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/to.jl 95.83% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #109   +/-   ##
=======================================
  Coverage        ?   73.83%           
=======================================
  Files           ?       21           
  Lines           ?     1586           
  Branches        ?        0           
=======================================
  Hits            ?     1171           
  Misses          ?      415           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jswent
jswent merged commit b9b6b47 into libsemigroups:main Oct 8, 2026
13 of 14 checks passed
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.

Merge to-*.jl and test-to-*.jl files

2 participants