add test for julia version support

This commit is contained in:
Eric Hanson 2025-07-21 16:51:14 +02:00
parent 5501721fa9
commit ae6f19d870
3 changed files with 24 additions and 2 deletions

View file

@ -28,6 +28,22 @@ def test_julia_hook(tmp_path):
assert run_language(tmp_path, julia, 'src/main.jl') == expected
def test_julia_hook_version(tmp_path):
code = """
using Example
function main()
println("Hello, Julia $(VERSION)!")
end
main()
"""
_make_hook(tmp_path, code)
expected = (0, b'Hello, Julia 1.10.10!\n')
assert run_language(
tmp_path, julia, 'src/main.jl',
version='1.10.10',
) == expected
def test_julia_hook_manifest(tmp_path):
code = """
using Example