diff options
Diffstat (limited to 'tests/indent/julia')
| -rw-r--r-- | tests/indent/julia/argument_list.jl | 13 | ||||
| -rw-r--r-- | tests/indent/julia/assignment.jl | 11 | ||||
| -rw-r--r-- | tests/indent/julia/parameter_list.jl | 15 |
3 files changed, 39 insertions, 0 deletions
diff --git a/tests/indent/julia/argument_list.jl b/tests/indent/julia/argument_list.jl new file mode 100644 index 000000000..747a36efc --- /dev/null +++ b/tests/indent/julia/argument_list.jl @@ -0,0 +1,13 @@ +function test(a::Number, + b::Float64, + c::Union{Float64, Integer}, + d::Bool) +end + +function test( + a::Number, + b::Float64, + c::Union{Float64, Integer}, + d::Bool +) +end diff --git a/tests/indent/julia/assignment.jl b/tests/indent/julia/assignment.jl new file mode 100644 index 000000000..798b889de --- /dev/null +++ b/tests/indent/julia/assignment.jl @@ -0,0 +1,11 @@ +my_variable = + 1 + 2 - 3 * + 4 / 5 % + 6 + +function test() + my_variable = + 1 + 2 - 3 * + 4 / 5 % + 6 +end diff --git a/tests/indent/julia/parameter_list.jl b/tests/indent/julia/parameter_list.jl new file mode 100644 index 000000000..fc9e6d262 --- /dev/null +++ b/tests/indent/julia/parameter_list.jl @@ -0,0 +1,15 @@ +function test(a, b, c, d, e) + vcat(a, + b, + c, + d, + e) + + vcat( + a, + b, + c, + d, + e + ) +end |
