Skip to content

Commit

Permalink
run public keyword test on 1.11+
Browse files Browse the repository at this point in the history
  • Loading branch information
domluna committed Dec 1, 2024
1 parent 5f83396 commit aadf4cc
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions test/default_style.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4741,23 +4741,6 @@ some_function(
@test fmt(str, 4, 27; join_lines_based_on_source = true) == str
end

@testset "public keyword support" begin
str_ = """
public a,b,
c
"""
str = """
public a, b, c
"""
@test fmt(str_, 4, 14) == str
str = """
public a,
b,
c
"""
@test fmt(str_, 4, 1) == str
end

@testset "block automatically assume nested when join_lines_based_on_source" begin
str_ = """
let y = a, z = b
Expand All @@ -4772,4 +4755,23 @@ some_function(
@test fmt(str_, 4, 16; join_lines_based_on_source = true) == str_
@test fmt(str_, 4, 15; join_lines_based_on_source = true) == str
end

if VERSION >= v"1.11.0"
@testset "public keyword support" begin
str_ = """
public a,b,
c
"""
str = """
public a, b, c
"""
@test fmt(str_, 4, 14) == str
str = """
public a,
b,
c
"""
@test fmt(str_, 4, 1) == str
end
end
end

0 comments on commit aadf4cc

Please sign in to comment.