diff --git a/.mailmap b/.mailmap index f0d2d13c91d23..5335c88a63d7d 100644 --- a/.mailmap +++ b/.mailmap @@ -282,4 +282,4 @@ Daniel Karrasch Daniel Karrasch Roger Luo -Roger Luo \ No newline at end of file +Roger Luo diff --git a/HISTORY.md b/HISTORY.md index f14f91eef3507..1fcb416d4d47f 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -4102,7 +4102,7 @@ Library improvements + Using colons (`:`) to represent a collection of indices is deprecated. They now must be explicitly converted to a specialized array of integers with the `to_indices` function. -    As a result, the type of `SubArray`s that represent views over colon indices has changed. + As a result, the type of `SubArray`s that represent views over colon indices has changed. + Logical indexing is now more efficient. Logical arrays are converted by `to_indices` to a lazy, iterable collection of indices that doesn't support indexing. A deprecation diff --git a/Makefile b/Makefile index df6e998d47c35..8b8e70044a55e 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,7 @@ docs-revise: check-whitespace: ifneq ($(NO_GIT), 1) - @$(JULIAHOME)/contrib/check-whitespace.sh + @$(JULIAHOME)/contrib/check-whitespace.jl else $(warn "Skipping whitespace check because git is unavailable") endif @@ -472,7 +472,7 @@ endif # Include all git-tracked filenames git ls-files >> light-source-dist.tmp - + # Include documentation filenames find doc/_build/html >> light-source-dist.tmp diff --git a/base/abstractset.jl b/base/abstractset.jl index 561e18c15697c..960c414484668 100644 --- a/base/abstractset.jl +++ b/base/abstractset.jl @@ -434,7 +434,7 @@ issetequal(a::AbstractSet, b) = issetequal(a, Set(b)) function issetequal(a, b::AbstractSet) if haslength(a) # check b for too many unique elements - length(a) < length(b) && return false + length(a) < length(b) && return false end return issetequal(Set(a), b) end diff --git a/base/array.jl b/base/array.jl index b8ad7e137f25e..b211d507a07ff 100644 --- a/base/array.jl +++ b/base/array.jl @@ -452,7 +452,7 @@ the `value` that was passed; this means that if the `value` is itself modified, all elements of the `fill`ed array will reflect that modification because they're _still_ that very `value`. This is of no concern with `fill(1.0, (5,5))` as the `value` `1.0` is immutable and cannot itself be modified, but can be unexpected -with mutable values like — most commonly — arrays. For example, `fill([], 3)` +with mutable values like — most commonly — arrays. For example, `fill([], 3)` places _the very same_ empty array in all three locations of the returned vector: ```jldoctest diff --git a/base/gmp.jl b/base/gmp.jl index 435a0a0954ce9..3122fdbe11ef7 100644 --- a/base/gmp.jl +++ b/base/gmp.jl @@ -736,7 +736,7 @@ function digits!(a::AbstractVector{T}, n::BigInt; base::Integer = 10) where {T<: i, j = firstindex(a)-1, length(s)+1 lasti = min(lastindex(a), firstindex(a) + length(s)-1 - isneg(n)) while i < lasti - # base ≤ 36: 0-9, plus a-z for 10-35 + # base ≤ 36: 0-9, plus a-z for 10-35 # base > 36: 0-9, plus A-Z for 10-35 and a-z for 36..61 x = s[j -= 1] a[i += 1] = base ≤ 36 ? (x>0x39 ? x-0x57 : x-0x30) : (x>0x39 ? (x>0x60 ? x-0x3d : x-0x37) : x-0x30) diff --git a/base/indices.jl b/base/indices.jl index 6f3be4f8b0eed..8cea043569ae6 100644 --- a/base/indices.jl +++ b/base/indices.jl @@ -23,11 +23,11 @@ A linear indexing style uses one integer index to describe the position in the a (even if it's a multidimensional array) and column-major ordering is used to efficiently access the elements. This means that requesting [`eachindex`](@ref) from an array that is `IndexLinear` will return -a simple one-dimensional range, even if it is multidimensional. +a simple one-dimensional range, even if it is multidimensional. A custom array that reports its `IndexStyle` as `IndexLinear` only needs to implement indexing (and indexed assignment) with a single `Int` index; -all other indexing expressions — including multidimensional accesses — will +all other indexing expressions — including multidimensional accesses — will be recomputed to the linear index. For example, if `A` were a `2×3` custom matrix with linear indexing, and we referenced `A[1, 3]`, this would be recomputed to the equivalent linear index and call `A[5]` since `2*1 + 3 = 5`. @@ -50,13 +50,13 @@ a range of [`CartesianIndices`](@ref). A `N`-dimensional custom array that reports its `IndexStyle` as `IndexCartesian` needs to implement indexing (and indexed assignment) with exactly `N` `Int` indices; -all other indexing expressions — including linear indexing — will +all other indexing expressions — including linear indexing — will be recomputed to the equivalent Cartesian location. For example, if `A` were a `2×3` custom matrix with cartesian indexing, and we referenced `A[5]`, this would be recomputed to the equivalent Cartesian index and call `A[1, 3]` since `5 = 2*1 + 3`. It is significantly more expensive to compute Cartesian indices from a linear index than it is -to go the other way. The former operation requires division — a very costly operation — whereas +to go the other way. The former operation requires division — a very costly operation — whereas the latter only uses multiplication and addition and is essentially free. This asymmetry means it is far more costly to use linear indexing with an `IndexCartesian` array than it is to use Cartesian indexing with an `IndexLinear` array. diff --git a/base/missing.jl b/base/missing.jl index 3176c56772602..e1988064aadc1 100644 --- a/base/missing.jl +++ b/base/missing.jl @@ -463,4 +463,3 @@ macro coalesce(args...) end return esc(:(let val; $expr; end)) end - diff --git a/base/pkgid.jl b/base/pkgid.jl index f3afb74bc3490..20d9de559b334 100644 --- a/base/pkgid.jl +++ b/base/pkgid.jl @@ -42,4 +42,3 @@ function binunpack(s::String) name = read(io, String) return PkgId(UUID(uuid), name) end - diff --git a/base/randomdevice.jl b/base/randomdevice.jl index d63ff7edc1647..aaa6246e717bd 100644 --- a/base/randomdevice.jl +++ b/base/randomdevice.jl @@ -74,4 +74,4 @@ function _make_uint_seed() catch return _ad_hoc_entropy() % Cuint end -end \ No newline at end of file +end diff --git a/base/reflection.jl b/base/reflection.jl index 95fb81c8859d6..3ad950e963a64 100644 --- a/base/reflection.jl +++ b/base/reflection.jl @@ -1545,7 +1545,7 @@ Alternatively, in isolation `m1` and `m2` might be ordered, but if a third method cannot be sorted with them, they may cause an ambiguity together. For parametric types, the `ambiguous_bottom` keyword argument controls whether -`Union{}` counts as an ambiguous intersection of type parameters – when `true`, +`Union{}` counts as an ambiguous intersection of type parameters – when `true`, it is considered ambiguous, when `false` it is not. # Examples diff --git a/base/ryu/LICENSE.md b/base/ryu/LICENSE.md index 74c718646a08d..cab89eec22785 100644 --- a/base/ryu/LICENSE.md +++ b/base/ryu/LICENSE.md @@ -22,4 +22,4 @@ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. \ No newline at end of file +DEALINGS IN THE SOFTWARE. diff --git a/base/strings/basic.jl b/base/strings/basic.jl index 515b836311698..45e5901d1ccec 100644 --- a/base/strings/basic.jl +++ b/base/strings/basic.jl @@ -16,7 +16,7 @@ about strings: * Each `AbstractChar` in a string is encoded by one or more code units * Only the index of the first code unit of an `AbstractChar` is a valid index * The encoding of an `AbstractChar` is independent of what precedes or follows it - * String encodings are [self-synchronizing] – i.e. `isvalid(s, i)` is O(1) + * String encodings are [self-synchronizing] – i.e. `isvalid(s, i)` is O(1) [self-synchronizing]: https://en.wikipedia.org/wiki/Self-synchronizing_code @@ -46,8 +46,8 @@ AbstractString ncodeunits(s::AbstractString) -> Int Return the number of code units in a string. Indices that are in bounds to -access this string must satisfy `1 ≤ i ≤ ncodeunits(s)`. Not all such indices -are valid – they may not be the start of a character, but they will return a +access this string must satisfy `1 ≤ i ≤ ncodeunits(s)`. Not all such indices +are valid – they may not be the start of a character, but they will return a code unit value when calling `codeunit(s,i)`. # Examples @@ -389,7 +389,7 @@ length(s::AbstractString) = @inbounds return length(s, 1, ncodeunits(s)::Int) function length(s::AbstractString, i::Int, j::Int) @boundscheck begin 0 < i ≤ ncodeunits(s)::Int+1 || throw(BoundsError(s, i)) - 0 ≤ j < ncodeunits(s)::Int+1 || throw(BoundsError(s, j)) + 0 ≤ j < ncodeunits(s)::Int+1 || throw(BoundsError(s, j)) end n = 0 for k = i:j @@ -438,8 +438,8 @@ thisind(s::AbstractString, i::Integer) = thisind(s, Int(i)) function thisind(s::AbstractString, i::Int) z = ncodeunits(s)::Int + 1 i == z && return i - @boundscheck 0 ≤ i ≤ z || throw(BoundsError(s, i)) - @inbounds while 1 < i && !(isvalid(s, i)::Bool) + @boundscheck 0 ≤ i ≤ z || throw(BoundsError(s, i)) + @inbounds while 1 < i && !(isvalid(s, i)::Bool) i -= 1 end return i @@ -498,7 +498,7 @@ function prevind(s::AbstractString, i::Int, n::Int) z = ncodeunits(s) + 1 @boundscheck 0 < i ≤ z || throw(BoundsError(s, i)) n == 0 && return thisind(s, i) == i ? i : string_index_err(s, i) - while n > 0 && 1 < i + while n > 0 && 1 < i @inbounds n -= isvalid(s, i -= 1) end return i - n @@ -557,7 +557,7 @@ function nextind(s::AbstractString, i::Int, n::Int) z = ncodeunits(s) @boundscheck 0 ≤ i ≤ z || throw(BoundsError(s, i)) n == 0 && return thisind(s, i) == i ? i : string_index_err(s, i) - while n > 0 && i < z + while n > 0 && i < z @inbounds n -= isvalid(s, i += 1) end return i + n diff --git a/base/strings/io.jl b/base/strings/io.jl index fffe7904ebf92..d1bf7a763e93c 100644 --- a/base/strings/io.jl +++ b/base/strings/io.jl @@ -209,7 +209,7 @@ function show( # early out for short strings len = ncodeunits(str) - len ≤ limit - 2 && # quote chars + len ≤ limit - 2 && # quote chars return show(io, str) # these don't depend on string data diff --git a/base/strings/string.jl b/base/strings/string.jl index 70e46b29b546e..3053c82ad2da1 100644 --- a/base/strings/string.jl +++ b/base/strings/string.jl @@ -247,7 +247,7 @@ function getindex_continued(s::String, i::Int, u::UInt32) end n = ncodeunits(s) - (i += 1) > n && @goto ret + (i += 1) > n && @goto ret @inbounds b = codeunit(s, i) # cont byte 1 b & 0xc0 == 0x80 || @goto ret u |= UInt32(b) << 16 @@ -287,7 +287,7 @@ length(s::String) = length_continued(s, 1, ncodeunits(s), ncodeunits(s)) @inline function length(s::String, i::Int, j::Int) @boundscheck begin 0 < i ≤ ncodeunits(s)+1 || throw(BoundsError(s, i)) - 0 ≤ j < ncodeunits(s)+1 || throw(BoundsError(s, j)) + 0 ≤ j < ncodeunits(s)+1 || throw(BoundsError(s, j)) end j < i && return 0 @inbounds i, k = thisind(s, i), i @@ -300,8 +300,8 @@ end @inbounds b = codeunit(s, i) @inbounds while true while true - (i += 1) ≤ n || return c - 0xc0 ≤ b ≤ 0xf7 && break + (i += 1) ≤ n || return c + 0xc0 ≤ b ≤ 0xf7 && break b = codeunit(s, i) end l = b @@ -309,12 +309,12 @@ end c -= (x = b & 0xc0 == 0x80) x & (l ≥ 0xe0) || continue - (i += 1) ≤ n || return c + (i += 1) ≤ n || return c b = codeunit(s, i) # cont byte 2 c -= (x = b & 0xc0 == 0x80) x & (l ≥ 0xf0) || continue - (i += 1) ≤ n || return c + (i += 1) ≤ n || return c b = codeunit(s, i) # cont byte 3 c -= (b & 0xc0 == 0x80) end diff --git a/base/strings/substring.jl b/base/strings/substring.jl index 5142cf65fe9c5..8e36f7e1b051f 100644 --- a/base/strings/substring.jl +++ b/base/strings/substring.jl @@ -25,7 +25,7 @@ struct SubString{T<:AbstractString} <: AbstractString ncodeunits::Int function SubString{T}(s::T, i::Int, j::Int) where T<:AbstractString - i ≤ j || return new(s, 0, 0) + i ≤ j || return new(s, 0, 0) @boundscheck begin checkbounds(s, i:j) @inbounds isvalid(s, i) || string_index_err(s, i) diff --git a/base/ttyhascolor.jl b/base/ttyhascolor.jl index 800dcc380394b..5984dba6d592e 100644 --- a/base/ttyhascolor.jl +++ b/base/ttyhascolor.jl @@ -24,4 +24,4 @@ end in(key_value::Pair{Symbol,Bool}, ::TTY) = key_value.first === :color && key_value.second === get_have_color() haskey(::TTY, key::Symbol) = key === :color getindex(::TTY, key::Symbol) = key === :color ? get_have_color() : throw(KeyError(key)) -get(::TTY, key::Symbol, default) = key === :color ? get_have_color() : default \ No newline at end of file +get(::TTY, key::Symbol, default) = key === :color ? get_have_color() : default diff --git a/contrib/README.md b/contrib/README.md index 62eca671dc38e..f75dc4488fb0b 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -6,7 +6,7 @@ Installation |[ mac/ ](https://github.com/JuliaLang/julia/blob/master/contrib/mac/) | Mac install files | |[ windows/ ](https://github.com/JuliaLang/julia/blob/master/contrib/windows/) | Windows install files | |[ add_license_to_files.jl ](https://github.com/JuliaLang/julia/blob/master/contrib/add_license_to_files.jl ) | Add the Julia license to files in the Julia Project | -|[ check-whitespace.sh ](https://github.com/JuliaLang/julia/blob/master/contrib/check-whitespace.sh) | Check for trailing white space | +|[ check-whitespace.jl ](https://github.com/JuliaLang/julia/blob/master/contrib/check-whitespace.jl) | Check for white space issues | |[ commit-name.sh ](https://github.com/JuliaLang/julia/blob/master/contrib/commit-name.sh) | Computes a version name for a commit | |[ fixup-libgfortran.sh ](https://github.com/JuliaLang/julia/blob/master/contrib/fixup-libgfortran.sh) | Include libgfortran and libquadmath for installations | |[ fixup-libstdc++.sh ](https://github.com/JuliaLang/julia/blob/master/contrib/fixup-libstdc++.sh) | Include libstdc++ for installations | diff --git a/contrib/check-whitespace.jl b/contrib/check-whitespace.jl new file mode 100755 index 0000000000000..4d078d400daea --- /dev/null +++ b/contrib/check-whitespace.jl @@ -0,0 +1,55 @@ +#!/usr/bin/env julia + +const patterns = split(""" + *.1 + *.c + *.cpp + *.h + *.inc + *.jl + *.lsp + *.make + *.md + *.mk + *.rst + *.scm + *.sh + *.yml + *Makefile +""") + +const errors = Set{Tuple{String,Int,String}}() + +for path in eachline(`git ls-files -- $patterns`) + lineno = 0 + non_blank = 0 + + file_err(msg) = push!(errors, (path, 0, msg)) + line_err(msg) = push!(errors, (path, lineno, msg)) + + for line in eachline(path, keep=true) + lineno += 1 + contains(line, '\r') && file_err("non-UNIX line endings") + contains(line, '\ua0') && line_err("non-breaking space") + endswith(line, '\n') || line_err("no trailing newline") + line = chomp(line) + endswith(line, r"\s") && line_err("trailing whitespace") + contains(line, r"\S") && (non_blank = lineno) + end + non_blank < lineno && line_err("trailing blank lines") +end + +if isempty(errors) + println(stderr, "Whitespace check found no issues.") + exit(0) +else + println(stderr, "Whitespace check found $(length(errors)) issues:") + for (path, lineno, msg) in sort!(collect(errors)) + if lineno == 0 + println(stderr, "$path -- $msg") + else + println(stderr, "$path:$lineno -- $msg") + end + end + exit(1) +end diff --git a/contrib/check-whitespace.sh b/contrib/check-whitespace.sh deleted file mode 100755 index ff5bd24ab2cbe..0000000000000 --- a/contrib/check-whitespace.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# This file is a part of Julia. License is MIT: https://julialang.org/license - -# Check for trailing white space in source files; -# report an error if so - -# Files to check: -set -f # disable glob expansion in this script -file_patterns=' -*.1 -*.c -*.cpp -*.h -*.jl -*.lsp -*.scm -*.inc -*.make -*.mk -*.md -*.rst -*.sh -*.yml -*Makefile -' - -# TODO: Look also for trailing empty lines, and missing '\n' after the last line -if git --no-pager grep --color -n --full-name -e ' $' -- $file_patterns; then - echo "Error: trailing whitespace found in source file(s)" - echo "" - echo "This can often be fixed with:" - echo " git rebase --whitespace=fix HEAD~1" - echo "or" - echo " git rebase --whitespace=fix master" - echo "and then a forced push of the correct branch" - exit 1 -fi - -echo "Whitespace check found no issues" diff --git a/contrib/fixup-libgfortran.sh b/contrib/fixup-libgfortran.sh index 7f44ffb29d522..6121665fb5a86 100755 --- a/contrib/fixup-libgfortran.sh +++ b/contrib/fixup-libgfortran.sh @@ -160,4 +160,3 @@ for lib in libopenblas libcholmod liblapack $SONAMES; do done done done - diff --git a/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/AppIcon.appiconset/Contents.json b/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/AppIcon.appiconset/Contents.json index 2fe2dbc16b987..5071eb935ab9b 100644 --- a/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -65,4 +65,4 @@ "version" : 1, "author" : "xcode" } -} \ No newline at end of file +} diff --git a/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/Contents.json b/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/Contents.json index da4a164c91865..2d92bd53fdb22 100644 --- a/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/Contents.json +++ b/contrib/mac/frameworkapp/JuliaLauncher/Assets.xcassets/Contents.json @@ -3,4 +3,4 @@ "version" : 1, "author" : "xcode" } -} \ No newline at end of file +} diff --git a/contrib/mac/frameworkapp/installresources/conclusion.rtf b/contrib/mac/frameworkapp/installresources/conclusion.rtf index 8d794ae31c04b..1f3e60f5f5277 100644 --- a/contrib/mac/frameworkapp/installresources/conclusion.rtf +++ b/contrib/mac/frameworkapp/installresources/conclusion.rtf @@ -77,4 +77,4 @@ Conclusion\ \f1 \cb1 \ \pard\pardeftab720\partightenfactor0 -\f2 \cf0 \cb2 ln -s INSTALL_LOCATION/Julia.framework/Helpers/julia DIR_IN_PATH/julia} \ No newline at end of file +\f2 \cf0 \cb2 ln -s INSTALL_LOCATION/Julia.framework/Helpers/julia DIR_IN_PATH/julia} diff --git a/contrib/mac/frameworkapp/installresources/readme.rtf b/contrib/mac/frameworkapp/installresources/readme.rtf index d555047dd5c1c..935d9a5f6a576 100644 --- a/contrib/mac/frameworkapp/installresources/readme.rtf +++ b/contrib/mac/frameworkapp/installresources/readme.rtf @@ -28,4 +28,4 @@ Readme\ \f2 \cb2 $HOME \f1 \cb1 usually expands to \f2 \cb2 /Users/username -\f1 \cb1 ).} \ No newline at end of file +\f1 \cb1 ).} diff --git a/contrib/relative_path.py b/contrib/relative_path.py index b9d3d1e5bca7e..9a60607d64d9b 100755 --- a/contrib/relative_path.py +++ b/contrib/relative_path.py @@ -7,4 +7,4 @@ # shells and whatnot during the build are all POSIX shells/cygwin. We rely on the build # system itself to canonicalize to `\` when it needs to, and deal with the shell escaping # and whatnot at the latest possible moment. -sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/')) \ No newline at end of file +sys.stdout.write(os.path.relpath(sys.argv[2], sys.argv[1]).replace(os.path.sep, '/')) diff --git a/deps/gfortblas.c b/deps/gfortblas.c index 4133a97537399..321fe124d7e87 100644 --- a/deps/gfortblas.c +++ b/deps/gfortblas.c @@ -119,4 +119,3 @@ __attribute__((destructor)) static void fini(void) { SetBLASParamErrorProc(NULL); /* restore default handler */ } - diff --git a/doc/src/assets/logo-dark.svg b/doc/src/assets/logo-dark.svg index 0c90d2f7713c2..e578fd9f9a035 100644 --- a/doc/src/assets/logo-dark.svg +++ b/doc/src/assets/logo-dark.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/doc/src/base/punctuation.md b/doc/src/base/punctuation.md index 526f11d831127..5e0c758fa3171 100644 --- a/doc/src/base/punctuation.md +++ b/doc/src/base/punctuation.md @@ -30,7 +30,7 @@ Extended documentation for mathematical symbols & functions is [here](@ref math- | `a[]` | [array indexing](@ref man-array-indexing) (calling [`getindex`](@ref) or [`setindex!`](@ref)) | | `[,]` | [vector literal constructor](@ref man-array-literals) (calling [`vect`](@ref Base.vect)) | | `[;]` | [vertical concatenation](@ref man-array-concatenation) (calling [`vcat`](@ref) or [`hvcat`](@ref)) | -| `[   ]` | with space-separated expressions, [horizontal concatenation](@ref man-concatenation) (calling [`hcat`](@ref) or [`hvcat`](@ref)) | +| `[ ]` | with space-separated expressions, [horizontal concatenation](@ref man-concatenation) (calling [`hcat`](@ref) or [`hvcat`](@ref)) | | `T{ }` | curly braces following a type list that type's [parameters](@ref Parametric-Types) | | `{}` | curly braces can also be used to group multiple [`where`](@ref) expressions in function declarations | | `;` | semicolons separate statements, begin a list of keyword arguments in function declarations or calls, or are used to separate array literals for vertical concatenation | diff --git a/doc/src/devdocs/init.md b/doc/src/devdocs/init.md index cf954884c57b6..348e69f673f80 100644 --- a/doc/src/devdocs/init.md +++ b/doc/src/devdocs/init.md @@ -185,32 +185,32 @@ Hello World! | `jl_uv_write()` | `jl_uv.c` | called though [`ccall`](@ref) | | `julia_write_282942` | `stream.jl` | function `write!(s::IO, a::Array{T}) where T` | | `julia_print_284639` | `ascii.jl` | `print(io::IO, s::String) = (write(io, s); nothing)` | -| `jlcall_print_284639` |   |   | -| `jl_apply()` | `julia.h` |   | -| `jl_trampoline()` | `builtins.c` |   | -| `jl_apply()` | `julia.h` |   | +| `jlcall_print_284639` | | | +| `jl_apply()` | `julia.h` | | +| `jl_trampoline()` | `builtins.c` | | +| `jl_apply()` | `julia.h` | | | `jl_apply_generic()` | `gf.c` | `Base.print(Base.TTY, String)` | -| `jl_apply()` | `julia.h` |   | -| `jl_trampoline()` | `builtins.c` |   | -| `jl_apply()` | `julia.h` |   | +| `jl_apply()` | `julia.h` | | +| `jl_trampoline()` | `builtins.c` | | +| `jl_apply()` | `julia.h` | | | `jl_apply_generic()` | `gf.c` | `Base.print(Base.TTY, String, Char, Char...)` | -| `jl_apply()` | `julia.h` |   | -| `jl_f_apply()` | `builtins.c` |   | -| `jl_apply()` | `julia.h` |   | -| `jl_trampoline()` | `builtins.c` |   | -| `jl_apply()` | `julia.h` |   | +| `jl_apply()` | `julia.h` | | +| `jl_f_apply()` | `builtins.c` | | +| `jl_apply()` | `julia.h` | | +| `jl_trampoline()` | `builtins.c` | | +| `jl_apply()` | `julia.h` | | | `jl_apply_generic()` | `gf.c` | `Base.println(Base.TTY, String, String...)` | -| `jl_apply()` | `julia.h` |   | -| `jl_trampoline()` | `builtins.c` |   | -| `jl_apply()` | `julia.h` |   | +| `jl_apply()` | `julia.h` | | +| `jl_trampoline()` | `builtins.c` | | +| `jl_apply()` | `julia.h` | | | `jl_apply_generic()` | `gf.c` | `Base.println(String,)` | -| `jl_apply()` | `julia.h` |   | -| `do_call()` | `interpreter.c` |   | -| `eval_body()` | `interpreter.c` |   | -| `jl_interpret_toplevel_thunk` | `interpreter.c` |   | -| `jl_toplevel_eval_flex` | `toplevel.c` |   | -| `jl_toplevel_eval_in` | `toplevel.c` |   | -| `Core.eval` | `boot.jl` |   | +| `jl_apply()` | `julia.h` | | +| `do_call()` | `interpreter.c` | | +| `eval_body()` | `interpreter.c` | | +| `jl_interpret_toplevel_thunk` | `interpreter.c` | | +| `jl_toplevel_eval_flex` | `toplevel.c` | | +| `jl_toplevel_eval_in` | `toplevel.c` | | +| `Core.eval` | `boot.jl` | | Since our example has just one function call, which has done its job of printing "Hello World!", the stack now rapidly unwinds back to `main()`. diff --git a/doc/src/devdocs/object.md b/doc/src/devdocs/object.md index 8cba7c8ba4500..cf377c052bf15 100644 --- a/doc/src/devdocs/object.md +++ b/doc/src/devdocs/object.md @@ -199,4 +199,3 @@ objects. 0 bytes, and consist only of their metadata. e.g. `nothing::Nothing`. See [Singleton Types](@ref man-singleton-types) and [Nothingness and missing values](@ref) - diff --git a/doc/src/devdocs/reflection.md b/doc/src/devdocs/reflection.md index ec307012c17d5..8ffe305a0d724 100644 --- a/doc/src/devdocs/reflection.md +++ b/doc/src/devdocs/reflection.md @@ -151,4 +151,3 @@ CodeInfo( Possible values for `debuginfo` are: `:none`, `:source`, and `:default`. Per default debug information is not printed, but that can be changed by setting `Base.IRShow.default_debuginfo[] = :source`. - diff --git a/doc/src/manual/environment-variables.md b/doc/src/manual/environment-variables.md index 4243c43537cf3..85c463297ff3a 100644 --- a/doc/src/manual/environment-variables.md +++ b/doc/src/manual/environment-variables.md @@ -424,4 +424,3 @@ On debug builds of Julia this is always enabled. Recommended to use with `-g 2`. ### `JULIA_LLVM_ARGS` Arguments to be passed to the LLVM backend. - diff --git a/doc/src/manual/faq.md b/doc/src/manual/faq.md index f3373f5a32ee5..ac7e6e81e5d70 100644 --- a/doc/src/manual/faq.md +++ b/doc/src/manual/faq.md @@ -443,7 +443,7 @@ julia> sqrt(-2.0+0im) ### How can I constrain or compute type parameters? The parameters of a [parametric type](@ref Parametric-Types) can hold either -types or bits values, and the type itself chooses how it makes use of these parameters. +types or bits values, and the type itself chooses how it makes use of these parameters. For example, `Array{Float64, 2}` is parameterized by the type `Float64` to express its element type and the integer value `2` to express its number of dimensions. When defining your own parametric type, you can use subtype constraints to declare that a diff --git a/doc/src/manual/handling-operating-system-variation.md b/doc/src/manual/handling-operating-system-variation.md index d8dc3abd93d7f..26583b1379e45 100644 --- a/doc/src/manual/handling-operating-system-variation.md +++ b/doc/src/manual/handling-operating-system-variation.md @@ -40,4 +40,3 @@ When nesting conditionals, the `@static` must be repeated for each level ```julia @static Sys.iswindows() ? :a : (@static Sys.isapple() ? :b : :c) ``` - diff --git a/doc/src/manual/integers-and-floating-point-numbers.md b/doc/src/manual/integers-and-floating-point-numbers.md index 24c7a8c5a0eeb..2d073b83aec0a 100644 --- a/doc/src/manual/integers-and-floating-point-numbers.md +++ b/doc/src/manual/integers-and-floating-point-numbers.md @@ -21,15 +21,15 @@ The following are Julia's primitive numeric types: | Type | Signed? | Number of bits | Smallest value | Largest value | |:----------------- |:------- |:-------------- |:-------------- |:------------- | | [`Int8`](@ref) | ✓ | 8 | -2^7 | 2^7 - 1 | -| [`UInt8`](@ref) |   | 8 | 0 | 2^8 - 1 | +| [`UInt8`](@ref) | | 8 | 0 | 2^8 - 1 | | [`Int16`](@ref) | ✓ | 16 | -2^15 | 2^15 - 1 | -| [`UInt16`](@ref) |   | 16 | 0 | 2^16 - 1 | +| [`UInt16`](@ref) | | 16 | 0 | 2^16 - 1 | | [`Int32`](@ref) | ✓ | 32 | -2^31 | 2^31 - 1 | -| [`UInt32`](@ref) |   | 32 | 0 | 2^32 - 1 | +| [`UInt32`](@ref) | | 32 | 0 | 2^32 - 1 | | [`Int64`](@ref) | ✓ | 64 | -2^63 | 2^63 - 1 | -| [`UInt64`](@ref) |   | 64 | 0 | 2^64 - 1 | +| [`UInt64`](@ref) | | 64 | 0 | 2^64 - 1 | | [`Int128`](@ref) | ✓ | 128 | -2^127 | 2^127 - 1 | -| [`UInt128`](@ref) |   | 128 | 0 | 2^128 - 1 | +| [`UInt128`](@ref) | | 128 | 0 | 2^128 - 1 | | [`Bool`](@ref) | N/A | 8 | `false` (0) | `true` (1) | * **Floating-point types:** diff --git a/doc/src/manual/interfaces.md b/doc/src/manual/interfaces.md index 2b790a6546ff3..30ee82e3040b0 100644 --- a/doc/src/manual/interfaces.md +++ b/doc/src/manual/interfaces.md @@ -7,10 +7,10 @@ to generically build upon those behaviors. ## [Iteration](@id man-interface-iteration) -| Required methods |   | Brief description | +| Required methods | | Brief description | |:------------------------------ |:---------------------- |:------------------------------------------------------------------------------------- | -| `iterate(iter)` |   | Returns either a tuple of the first item and initial state or [`nothing`](@ref) if empty | -| `iterate(iter, state)` |   | Returns either a tuple of the next item and next state or `nothing` if no items remain | +| `iterate(iter)` | | Returns either a tuple of the first item and initial state or [`nothing`](@ref) if empty | +| `iterate(iter, state)` | | Returns either a tuple of the next item and next state or `nothing` if no items remain | | **Important optional methods** | **Default definition** | **Brief description** | | `Base.IteratorSize(IterType)` | `Base.HasLength()` | One of `Base.HasLength()`, `Base.HasShape{N}()`, `Base.IsInfinite()`, or `Base.SizeUnknown()` as appropriate | | `Base.IteratorEltype(IterType)`| `Base.HasEltype()` | Either `Base.EltypeUnknown()` or `Base.HasEltype()` as appropriate | @@ -221,13 +221,13 @@ ourselves, we can officially define it as a subtype of an [`AbstractArray`](@ref ## [Abstract Arrays](@id man-interface-array) -| Methods to implement |   | Brief description | +| Methods to implement | | Brief description | |:----------------------------------------------- |:-------------------------------------- |:------------------------------------------------------------------------------------- | -| `size(A)` |   | Returns a tuple containing the dimensions of `A` | -| `getindex(A, i::Int)` |   | (if `IndexLinear`) Linear scalar indexing | -| `getindex(A, I::Vararg{Int, N})` |   | (if `IndexCartesian`, where `N = ndims(A)`) N-dimensional scalar indexing | -| `setindex!(A, v, i::Int)` |   | (if `IndexLinear`) Scalar indexed assignment | -| `setindex!(A, v, I::Vararg{Int, N})` |   | (if `IndexCartesian`, where `N = ndims(A)`) N-dimensional scalar indexed assignment | +| `size(A)` | | Returns a tuple containing the dimensions of `A` | +| `getindex(A, i::Int)` | | (if `IndexLinear`) Linear scalar indexing | +| `getindex(A, I::Vararg{Int, N})` | | (if `IndexCartesian`, where `N = ndims(A)`) N-dimensional scalar indexing | +| `setindex!(A, v, i::Int)` | | (if `IndexLinear`) Scalar indexed assignment | +| `setindex!(A, v, I::Vararg{Int, N})` | | (if `IndexCartesian`, where `N = ndims(A)`) N-dimensional scalar indexed assignment | | **Optional methods** | **Default definition** | **Brief description** | | `IndexStyle(::Type)` | `IndexCartesian()` | Returns either `IndexLinear()` or `IndexCartesian()`. See the description below. | | `getindex(A, I...)` | defined in terms of scalar `getindex` | [Multidimensional and nonscalar indexing](@ref man-array-indexing) | diff --git a/doc/src/manual/variables-and-scoping.md b/doc/src/manual/variables-and-scoping.md index 6e94037f3e564..35022d788aa67 100644 --- a/doc/src/manual/variables-and-scoping.md +++ b/doc/src/manual/variables-and-scoping.md @@ -124,7 +124,7 @@ man-scope-table) for a complete list). If such a block is syntactically nested inside of another local scope, the scope it creates is nested inside of all the local scopes that it appears within, which are all ultimately nested inside of the global scope of the module in which the code is evaluated. Variables in -outer scopes are visible from any scope they contain — meaning that they can be +outer scopes are visible from any scope they contain — meaning that they can be read and written in inner scopes — unless there is a local variable with the same name that "shadows" the outer variable of the same name. This is true even if the outer local is declared after (in the sense of textually below) an inner @@ -532,7 +532,7 @@ prints this very direct warning: This addresses both issues while preserving the "programming at scale" benefits of the 1.0 behavior: global variables have no spooky effect on the meaning of code that may be far away; in the REPL copy-and-paste debugging works and beginners don't have any issues; any time someone either forgets -a `global` annotation or accidentally shadows an existing global with a local in a soft scope, +a `global` annotation or accidentally shadows an existing global with a local in a soft scope, which would be confusing anyway, they get a nice clear warning. An important property of this design is that any code that executes in a file without a warning will diff --git a/src/dlload.c b/src/dlload.c index 33afe62acad90..d8bc2f374ef36 100644 --- a/src/dlload.c +++ b/src/dlload.c @@ -156,7 +156,7 @@ JL_DLLEXPORT void *jl_load_dynamic_library(const char *modname, unsigned flags, void *handle; int abspath; int is_atpath; - // number of extensions to try — if modname already ends with the + // number of extensions to try — if modname already ends with the // standard extension, then we don't try adding additional extensions int n_extensions = endswith_extension(modname) ? 1 : N_EXTENSIONS; diff --git a/src/flisp/LICENSE b/src/flisp/LICENSE index 34860f4ba63d4..bf599268bffe8 100644 --- a/src/flisp/LICENSE +++ b/src/flisp/LICENSE @@ -23,4 +23,4 @@ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/src/flisp/profile.scm b/src/flisp/profile.scm index f5486996703cf..64a98326c7929 100644 --- a/src/flisp/profile.scm +++ b/src/flisp/profile.scm @@ -69,4 +69,3 @@ (for-each (lambda (k) (put! *profiles* k (cons 0 (cons 0 0)))) (table.keys *profiles*))))) - diff --git a/src/jl_exported_funcs.inc b/src/jl_exported_funcs.inc index 09fb4880ae626..2aed69f47c30a 100644 --- a/src/jl_exported_funcs.inc +++ b/src/jl_exported_funcs.inc @@ -570,4 +570,3 @@ YY(LLVMExtraAddGCInvariantVerifierPass) \ YY(LLVMExtraAddDemoteFloat16Pass) \ YY(LLVMExtraAddCPUFeaturesPass) \ - diff --git a/src/llvm-alloc-helpers.h b/src/llvm-alloc-helpers.h index 3f06baddfcff6..7238d71de973f 100644 --- a/src/llvm-alloc-helpers.h +++ b/src/llvm-alloc-helpers.h @@ -142,4 +142,4 @@ namespace jl_alloc { } -#endif \ No newline at end of file +#endif diff --git a/stdlib/Dates/test/periods.jl b/stdlib/Dates/test/periods.jl index 0467841fb6261..c37a1666375a9 100644 --- a/stdlib/Dates/test/periods.jl +++ b/stdlib/Dates/test/periods.jl @@ -531,4 +531,3 @@ end end end - diff --git a/stdlib/DelimitedFiles/test/runtests.jl b/stdlib/DelimitedFiles/test/runtests.jl index 69285b6c58fb0..3bb8381354c55 100644 --- a/stdlib/DelimitedFiles/test/runtests.jl +++ b/stdlib/DelimitedFiles/test/runtests.jl @@ -194,7 +194,7 @@ end "Ireland", "Sinead O'Connor", "Éire", "Sinéad O'Connor", "Israel", "Yehoram Gaon", "ישראל", "יהורם גאון", "Italy", "Fabrizio DeAndre", "Italia", "Fabrizio De André", - "Japan", "KUBOTA Toshinobu", "日本", "久保田    利伸", + "Japan", "KUBOTA Toshinobu", "日本", "久保田 利伸", "Japan", "HAYASHIBARA Megumi", "日本", "林原 めぐみ", "Japan", "Mori Ogai", "日本", "森鷗外", "Japan", "Tex Texin", "日本", "テクス テクサン", diff --git a/stdlib/LazyArtifacts/test/Artifacts.toml b/stdlib/LazyArtifacts/test/Artifacts.toml deleted file mode 120000 index 1b01a83fcf079..0000000000000 --- a/stdlib/LazyArtifacts/test/Artifacts.toml +++ /dev/null @@ -1 +0,0 @@ -../../Artifacts/test/Artifacts.toml \ No newline at end of file diff --git a/stdlib/LazyArtifacts/test/Artifacts.toml b/stdlib/LazyArtifacts/test/Artifacts.toml new file mode 100644 index 0000000000000..4b715b74c128b --- /dev/null +++ b/stdlib/LazyArtifacts/test/Artifacts.toml @@ -0,0 +1,155 @@ +[[HelloWorldC]] +arch = "aarch64" +git-tree-sha1 = "95fce80ec703eeb5f4270fef6821b38d51387499" +os = "macos" + + [[HelloWorldC.download]] + sha256 = "23f45918421881de8e9d2d471c70f6b99c26edd1dacd7803d2583ba93c8bbb28" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.aarch64-apple-darwin.tar.gz" +[[HelloWorldC]] +arch = "aarch64" +git-tree-sha1 = "1ccbaad776766366943fd5a66a8cbc9877ee8df9" +libc = "glibc" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "82bca07ff25a75875936116ca977285160a2afcc4f58dd160c7b1600f55da655" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.aarch64-linux-gnu.tar.gz" +[[HelloWorldC]] +arch = "aarch64" +git-tree-sha1 = "dc43ab874611cfc26641741c31b8230276d7d664" +libc = "musl" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "36b7c554f1cb04d5282b991c66a10b2100085ac8deb2156bf52b4f7c4e406c04" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.aarch64-linux-musl.tar.gz" +[[HelloWorldC]] +arch = "armv6l" +call_abi = "eabihf" +git-tree-sha1 = "b7128521583d02d2dbe9c8de6fe156b79df781d9" +libc = "glibc" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "5e094b9c6e4c6a77ecc8dfc2b841ac1f2157f6a81f4c47f1e0d3e9a04eec7945" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.armv6l-linux-gnueabihf.tar.gz" +[[HelloWorldC]] +arch = "armv6l" +call_abi = "eabihf" +git-tree-sha1 = "edb3893a154519d6786234f5c83994c34e11feed" +libc = "musl" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "0a2203f061ba2ef7ce4c452ec7874be3acc6db1efac8091f85d113c3404e6bb6" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.armv6l-linux-musleabihf.tar.gz" +[[HelloWorldC]] +arch = "armv7l" +call_abi = "eabihf" +git-tree-sha1 = "5a8288c8a30578c0d0f24a9cded29579517ce7a8" +libc = "glibc" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "a4392a4c8f834c97f9d8822ddfb1813d8674fa602eeaf04d6359c0a9e98478ec" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.armv7l-linux-gnueabihf.tar.gz" +[[HelloWorldC]] +arch = "armv7l" +call_abi = "eabihf" +git-tree-sha1 = "169c261b321c4dc95894cdd2db9d0d0caa84677f" +libc = "musl" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "ed1aacbf197a6c78988725a39defad130ed31a2258f8e7846f73b459821f21d3" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.armv7l-linux-musleabihf.tar.gz" +[[HelloWorldC]] +arch = "i686" +git-tree-sha1 = "fd35f9155dc424602d01fbf983eb76be3217a28f" +libc = "glibc" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "048fcff5ff47a3cc1e84a2688935fcd658ad1c7e7c52c0e81fe88ce6c3697aba" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.i686-linux-gnu.tar.gz" +[[HelloWorldC]] +arch = "i686" +git-tree-sha1 = "8db14df0f1d2a3ed9c6a7b053a590ca6527eb95e" +libc = "musl" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "d521b4420392b8365de5ed0ef38a3b6c822665d7c257d3eef6f725c205bb3d78" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.i686-linux-musl.tar.gz" +[[HelloWorldC]] +arch = "i686" +git-tree-sha1 = "56f82168947b8dc7bb98038f063209b9f864eaff" +os = "windows" + + [[HelloWorldC.download]] + sha256 = "de578cf5ee2f457e9ff32089cbe17d03704a929980beddf4c41f4c0eb32f19c6" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.i686-w64-mingw32.tar.gz" +[[HelloWorldC]] +arch = "powerpc64le" +git-tree-sha1 = "9c8902b62f5b1aaa7c2839c804bed7c3a0912c7b" +libc = "glibc" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "63ddbfbb6ea0cafef544cc25415e7ebee6ee0a69db0878d0d4e1ed27c0ae0ab5" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.powerpc64le-linux-gnu.tar.gz" +[[HelloWorldC]] +arch = "x86_64" +git-tree-sha1 = "f8ab5a03697f9afc82210d8a2be1d94509aea8bc" +os = "macos" + + [[HelloWorldC.download]] + sha256 = "f5043338613672b12546c59359c7997c5381a9a60b86aeb951dee74de428d5e3" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.x86_64-apple-darwin.tar.gz" +[[HelloWorldC]] +arch = "x86_64" +git-tree-sha1 = "1ed3d81088f16e3a1fa4e3d4c4c509b8c117fecf" +libc = "glibc" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "a18212e7984b08b23bec06e8bf9286a89b9fa2e8ee0dd46af3b852fe22013a4f" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.x86_64-linux-gnu.tar.gz" +[[HelloWorldC]] +arch = "x86_64" +git-tree-sha1 = "c04ef757b8bb773d17a0fd0ea396e52db1c7c385" +libc = "musl" +os = "linux" + + [[HelloWorldC.download]] + sha256 = "7a3d1b09410989508774f00e073ea6268edefcaba7617fc5085255ec8e82555b" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.x86_64-linux-musl.tar.gz" +[[HelloWorldC]] +arch = "x86_64" +git-tree-sha1 = "5f7e7abf7d545a1aaa368f22e3e01ea0268870b1" +os = "freebsd" + + [[HelloWorldC.download]] + sha256 = "56aedffe38fe20294e93cfc2eb0a193c8e2ddda5a697b302e77ff48ac1195198" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.x86_64-unknown-freebsd.tar.gz" +[[HelloWorldC]] +arch = "x86_64" +git-tree-sha1 = "2f1a6d4f82cd1eea785a5141b992423c09491f1b" +os = "windows" + + [[HelloWorldC.download]] + sha256 = "aad77a16cbc9752f6ec62549a28c7e9f3f7f57919f6fa9fb924e0c669b11f8c4" + url = "https://github.com/JuliaBinaryWrappers/HelloWorldC_jll.jl/releases/download/HelloWorldC-v1.1.2+0/HelloWorldC.v1.1.2.x86_64-w64-mingw32.tar.gz" + +[socrates] +git-tree-sha1 = "43563e7631a7eafae1f9f8d9d332e3de44ad7239" +lazy = true + + [[socrates.download]] + url = "https://github.com/staticfloat/small_bin/raw/master/socrates.tar.gz" + sha256 = "e65d2f13f2085f2c279830e863292312a72930fee5ba3c792b14c33ce5c5cc58" + + [[socrates.download]] + url = "https://github.com/staticfloat/small_bin/raw/master/socrates.tar.bz2" + sha256 = "13fc17b97be41763b02cbb80e9d048302cec3bd3d446c2ed6e8210bddcd3ac76" diff --git a/stdlib/LinearAlgebra/src/exceptions.jl b/stdlib/LinearAlgebra/src/exceptions.jl index 6704a9ac6ae4d..ae29b8bc2f7b9 100644 --- a/stdlib/LinearAlgebra/src/exceptions.jl +++ b/stdlib/LinearAlgebra/src/exceptions.jl @@ -59,4 +59,4 @@ struct ZeroPivotException <: Exception end function Base.showerror(io::IO, ex::ZeroPivotException) print(io, "ZeroPivotException: factorization encountered one or more zero pivots. Consider switching to a pivoted LU factorization.") -end \ No newline at end of file +end diff --git a/stdlib/LinearAlgebra/test/blas.jl b/stdlib/LinearAlgebra/test/blas.jl index 117d7dc103605..0a2ac87c8026d 100644 --- a/stdlib/LinearAlgebra/test/blas.jl +++ b/stdlib/LinearAlgebra/test/blas.jl @@ -562,7 +562,7 @@ end @testset "strided interface blas" begin for elty in (Float32, Float64, ComplexF32, ComplexF64) - # Level 1 + # Level 1 x = WrappedArray(elty[1, 2, 3, 4]) y = WrappedArray(elty[5, 6, 7, 8]) BLAS.blascopy!(2, x, 1, y, 2) @@ -622,7 +622,7 @@ end x = WrappedArray(elty[1, 2, 3, 4]) y = WrappedArray(elty[5, 6, 7, 8]) @test BLAS.dot(2, x, 1, y, 2) == elty(19) - # Level 2 + # Level 2 A = WrappedArray(elty[1 2; 3 4]) x = WrappedArray(elty[1, 2]) y = WrappedArray(elty[3, 4]) diff --git a/stdlib/Markdown/src/Common/Common.jl b/stdlib/Markdown/src/Common/Common.jl index 0891765b277ba..3036f2b4b730b 100644 --- a/stdlib/Markdown/src/Common/Common.jl +++ b/stdlib/Markdown/src/Common/Common.jl @@ -8,4 +8,3 @@ include("inline.jl") linebreak, escapes, inline_code, asterisk_bold, underscore_bold, asterisk_italic, underscore_italic, image, footnote_link, link, autolink] - diff --git a/stdlib/Markdown/src/GitHub/GitHub.jl b/stdlib/Markdown/src/GitHub/GitHub.jl index 493e01b085258..61807d267511d 100644 --- a/stdlib/Markdown/src/GitHub/GitHub.jl +++ b/stdlib/Markdown/src/GitHub/GitHub.jl @@ -62,4 +62,3 @@ end linebreak, escapes, en_dash, inline_code, asterisk_bold, underscore_bold, asterisk_italic, underscore_italic, image, footnote_link, link, autolink] - diff --git a/stdlib/Markdown/src/Julia/Julia.jl b/stdlib/Markdown/src/Julia/Julia.jl index 7ee049970277a..3797c5a8a0f79 100644 --- a/stdlib/Markdown/src/Julia/Julia.jl +++ b/stdlib/Markdown/src/Julia/Julia.jl @@ -12,4 +12,3 @@ include("interp.jl") linebreak, escapes, tex, interp, en_dash, inline_code, asterisk_bold, underscore_bold, asterisk_italic, underscore_italic, image, footnote_link, link, autolink] - diff --git a/stdlib/REPL/docs/src/index.md b/stdlib/REPL/docs/src/index.md index 1d1feea6d5a09..ff05723102ae0 100644 --- a/stdlib/REPL/docs/src/index.md +++ b/stdlib/REPL/docs/src/index.md @@ -225,7 +225,7 @@ to do so), or pressing Esc and then the key. | Keybinding | Description | |:------------------- |:---------------------------------------------------------------------------------------------------------- | -| **Program control** |   | +| **Program control** | | | `^D` | Exit (when buffer is empty) | | `^C` | Interrupt or cancel | | `^L` | Clear console screen | @@ -233,7 +233,7 @@ to do so), or pressing Esc and then the key. | meta-Return/Enter | Insert new line without executing it | | `?` or `;` | Enter help or shell mode (when at start of a line) | | `^R`, `^S` | Incremental history search, described above | -| **Cursor movement** |   | +| **Cursor movement** | | | Right arrow, `^F` | Move right one character | | Left arrow, `^B` | Move left one character | | ctrl-Right, `meta-F`| Move right one word | @@ -251,7 +251,7 @@ to do so), or pressing Esc and then the key. | `^-Space ^-Space` | Set the "mark" in the editing region and make the region "active", i.e. highlighted | | `^G` | De-activate the region (i.e. make it not highlighted) | | `^X^X` | Exchange the current position with the mark | -| **Editing** |   | +| **Editing** | | | Backspace, `^H` | Delete the previous character, or the whole region when it's active | | Delete, `^D` | Forward delete one character (when buffer has text) | | meta-Backspace | Delete the previous word | diff --git a/stdlib/REPL/test/docview.jl b/stdlib/REPL/test/docview.jl index 9757cdb5df097..15b0c5d7babfe 100644 --- a/stdlib/REPL/test/docview.jl +++ b/stdlib/REPL/test/docview.jl @@ -57,5 +57,3 @@ end b = REPL.Binding(@__MODULE__, :R) @test REPL.summarize(b, Tuple{}) isa Markdown.MD end - - diff --git a/stdlib/TOML/benchmark/tune.json b/stdlib/TOML/benchmark/tune.json index d8d7ca2ebf889..f1b12c393587f 100644 --- a/stdlib/TOML/benchmark/tune.json +++ b/stdlib/TOML/benchmark/tune.json @@ -1 +1 @@ -[{"Julia":"1.5.0","BenchmarkTools":"0.4.3"},[["BenchmarkGroup",{"data":{"strings":["BenchmarkGroup",{"data":{"long":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}],"short":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"numbers":["BenchmarkGroup",{"data":{"integers":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}],"floats":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"registry":["BenchmarkGroup",{"data":{"Registry.toml":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}],"Compat.toml":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"arrays":["BenchmarkGroup",{"data":{"heterogeneous":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}],"homogeneous":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"array of tables":["BenchmarkGroup",{"data":{"empty":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"parse empty":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":340,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}]]] \ No newline at end of file +[{"Julia":"1.5.0","BenchmarkTools":"0.4.3"},[["BenchmarkGroup",{"data":{"strings":["BenchmarkGroup",{"data":{"long":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}],"short":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"numbers":["BenchmarkGroup",{"data":{"integers":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}],"floats":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"registry":["BenchmarkGroup",{"data":{"Registry.toml":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}],"Compat.toml":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"arrays":["BenchmarkGroup",{"data":{"heterogeneous":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}],"homogeneous":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"array of tables":["BenchmarkGroup",{"data":{"empty":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":1,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}],"parse empty":["BenchmarkTools.Parameters",{"gctrial":true,"time_tolerance":0.05,"samples":10000,"evals":340,"gcsample":false,"seconds":5.0,"overhead":0.0,"memory_tolerance":0.01}]},"tags":[]}]]] diff --git a/stdlib/TOML/test/testfiles/invalid/key-single-open-bracket.toml b/stdlib/TOML/test/testfiles/invalid/key-single-open-bracket.toml index 8e2f0bef135ba..558ed37d93c5c 100644 --- a/stdlib/TOML/test/testfiles/invalid/key-single-open-bracket.toml +++ b/stdlib/TOML/test/testfiles/invalid/key-single-open-bracket.toml @@ -1 +1 @@ -[ \ No newline at end of file +[ diff --git a/stdlib/TOML/test/testfiles/invalid/key-space.toml b/stdlib/TOML/test/testfiles/invalid/key-space.toml index 201806d280132..7c22703e888e7 100644 --- a/stdlib/TOML/test/testfiles/invalid/key-space.toml +++ b/stdlib/TOML/test/testfiles/invalid/key-space.toml @@ -1 +1 @@ -a b = 1 \ No newline at end of file +a b = 1 diff --git a/stdlib/TOML/test/testfiles/invalid/multi-line-inline-table.toml b/stdlib/TOML/test/testfiles/invalid/multi-line-inline-table.toml index a195e1b5dcd84..3f34e15c07216 100644 --- a/stdlib/TOML/test/testfiles/invalid/multi-line-inline-table.toml +++ b/stdlib/TOML/test/testfiles/invalid/multi-line-inline-table.toml @@ -1,4 +1,4 @@ json_like = { first = "Tom", last = "Preston-Werner" -} \ No newline at end of file +} diff --git a/stdlib/TOML/test/testfiles/invalid/string-bad-codepoint.toml b/stdlib/TOML/test/testfiles/invalid/string-bad-codepoint.toml index aa81356dc94dc..592db75bb0c34 100644 --- a/stdlib/TOML/test/testfiles/invalid/string-bad-codepoint.toml +++ b/stdlib/TOML/test/testfiles/invalid/string-bad-codepoint.toml @@ -1 +1 @@ -invalid-codepoint = "This string contains a non scalar unicode codepoint \uD801" \ No newline at end of file +invalid-codepoint = "This string contains a non scalar unicode codepoint \uD801" diff --git a/stdlib/TOML/test/testfiles/invalid/table-whitespace.toml b/stdlib/TOML/test/testfiles/invalid/table-whitespace.toml index 79bbcb1e29832..0a6a6a69725c4 100644 --- a/stdlib/TOML/test/testfiles/invalid/table-whitespace.toml +++ b/stdlib/TOML/test/testfiles/invalid/table-whitespace.toml @@ -1 +1 @@ -[invalid key] \ No newline at end of file +[invalid key] diff --git a/stdlib/TOML/test/testfiles/invalid/table-with-pound.toml b/stdlib/TOML/test/testfiles/invalid/table-with-pound.toml index 0d8edb524fe1a..e7b777ecfb305 100644 --- a/stdlib/TOML/test/testfiles/invalid/table-with-pound.toml +++ b/stdlib/TOML/test/testfiles/invalid/table-with-pound.toml @@ -1,2 +1,2 @@ [key#group] -answer = 42 \ No newline at end of file +answer = 42 diff --git a/stdlib/TOML/test/testfiles/valid/array-empty.jl b/stdlib/TOML/test/testfiles/valid/array-empty.jl index 78a2489844b1a..da5f04f7da1a8 100644 --- a/stdlib/TOML/test/testfiles/valid/array-empty.jl +++ b/stdlib/TOML/test/testfiles/valid/array-empty.jl @@ -1 +1 @@ -Dict{String,Any}("thevoid" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[],"type" => "array")],"type" => "array")],"type" => "array")],"type" => "array")],"type" => "array")) \ No newline at end of file +Dict{String,Any}("thevoid" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[],"type" => "array")],"type" => "array")],"type" => "array")],"type" => "array")],"type" => "array")) diff --git a/stdlib/TOML/test/testfiles/valid/array-nospaces.jl b/stdlib/TOML/test/testfiles/valid/array-nospaces.jl index e5b8c98f00f3e..3f8b61a2880d4 100644 --- a/stdlib/TOML/test/testfiles/valid/array-nospaces.jl +++ b/stdlib/TOML/test/testfiles/valid/array-nospaces.jl @@ -1 +1 @@ -Dict{String,Any}("ints" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1","type" => "integer"), Dict{String,Any}("value" => "2","type" => "integer"), Dict{String,Any}("value" => "3","type" => "integer")],"type" => "array")) \ No newline at end of file +Dict{String,Any}("ints" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1","type" => "integer"), Dict{String,Any}("value" => "2","type" => "integer"), Dict{String,Any}("value" => "3","type" => "integer")],"type" => "array")) diff --git a/stdlib/TOML/test/testfiles/valid/array-string-quote-comma-2.jl b/stdlib/TOML/test/testfiles/valid/array-string-quote-comma-2.jl index 0c11baa1b27bf..6e6862dc30080 100644 --- a/stdlib/TOML/test/testfiles/valid/array-string-quote-comma-2.jl +++ b/stdlib/TOML/test/testfiles/valid/array-string-quote-comma-2.jl @@ -1 +1 @@ -Dict{String,Any}("title" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => " \", ","type" => "string")],"type" => "array")) \ No newline at end of file +Dict{String,Any}("title" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => " \", ","type" => "string")],"type" => "array")) diff --git a/stdlib/TOML/test/testfiles/valid/array-string-quote-comma.jl b/stdlib/TOML/test/testfiles/valid/array-string-quote-comma.jl index c291fb0b2b51f..d570f5e2a433a 100644 --- a/stdlib/TOML/test/testfiles/valid/array-string-quote-comma.jl +++ b/stdlib/TOML/test/testfiles/valid/array-string-quote-comma.jl @@ -1 +1 @@ -Dict{String,Any}("title" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "Client: \"XXXX\", Job: XXXX","type" => "string"), Dict{String,Any}("value" => "Code: XXXX","type" => "string")],"type" => "array")) \ No newline at end of file +Dict{String,Any}("title" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "Client: \"XXXX\", Job: XXXX","type" => "string"), Dict{String,Any}("value" => "Code: XXXX","type" => "string")],"type" => "array")) diff --git a/stdlib/TOML/test/testfiles/valid/array-string-with-comma.jl b/stdlib/TOML/test/testfiles/valid/array-string-with-comma.jl index fac0d3f5098bd..83727c9f05954 100644 --- a/stdlib/TOML/test/testfiles/valid/array-string-with-comma.jl +++ b/stdlib/TOML/test/testfiles/valid/array-string-with-comma.jl @@ -1 +1 @@ -Dict{String,Any}("title" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "Client: XXXX, Job: XXXX","type" => "string"), Dict{String,Any}("value" => "Code: XXXX","type" => "string")],"type" => "array")) \ No newline at end of file +Dict{String,Any}("title" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "Client: XXXX, Job: XXXX","type" => "string"), Dict{String,Any}("value" => "Code: XXXX","type" => "string")],"type" => "array")) diff --git a/stdlib/TOML/test/testfiles/valid/array-table-array-string-backslash.jl b/stdlib/TOML/test/testfiles/valid/array-table-array-string-backslash.jl index 2350b3cd70cba..0c0ad7fe793bb 100644 --- a/stdlib/TOML/test/testfiles/valid/array-table-array-string-backslash.jl +++ b/stdlib/TOML/test/testfiles/valid/array-table-array-string-backslash.jl @@ -1 +1 @@ -Dict{String,Any}("foo" => Any[Dict{String,Any}("bar" => Dict{String,Any}("value" => "\"{{baz}}\"","type" => "string"))]) \ No newline at end of file +Dict{String,Any}("foo" => Any[Dict{String,Any}("bar" => Dict{String,Any}("value" => "\"{{baz}}\"","type" => "string"))]) diff --git a/stdlib/TOML/test/testfiles/valid/arrays-hetergeneous.jl b/stdlib/TOML/test/testfiles/valid/arrays-hetergeneous.jl index dc143c8f8e685..7f66b6052096a 100644 --- a/stdlib/TOML/test/testfiles/valid/arrays-hetergeneous.jl +++ b/stdlib/TOML/test/testfiles/valid/arrays-hetergeneous.jl @@ -1 +1 @@ -Dict{String,Any}("mixed" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1","type" => "integer"), Dict{String,Any}("value" => "2","type" => "integer")],"type" => "array"), Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "a","type" => "string"), Dict{String,Any}("value" => "b","type" => "string")],"type" => "array"), Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1.1","type" => "float"), Dict{String,Any}("value" => "2.1","type" => "float")],"type" => "array")],"type" => "array")) \ No newline at end of file +Dict{String,Any}("mixed" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1","type" => "integer"), Dict{String,Any}("value" => "2","type" => "integer")],"type" => "array"), Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "a","type" => "string"), Dict{String,Any}("value" => "b","type" => "string")],"type" => "array"), Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1.1","type" => "float"), Dict{String,Any}("value" => "2.1","type" => "float")],"type" => "array")],"type" => "array")) diff --git a/stdlib/TOML/test/testfiles/valid/arrays-nested.jl b/stdlib/TOML/test/testfiles/valid/arrays-nested.jl index 69e925e4e36f8..4f3280552e9da 100644 --- a/stdlib/TOML/test/testfiles/valid/arrays-nested.jl +++ b/stdlib/TOML/test/testfiles/valid/arrays-nested.jl @@ -1 +1 @@ -Dict{String,Any}("nest" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "a","type" => "string")],"type" => "array"), Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "b","type" => "string")],"type" => "array")],"type" => "array")) \ No newline at end of file +Dict{String,Any}("nest" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "a","type" => "string")],"type" => "array"), Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "b","type" => "string")],"type" => "array")],"type" => "array")) diff --git a/stdlib/TOML/test/testfiles/valid/arrays.jl b/stdlib/TOML/test/testfiles/valid/arrays.jl index e00d308bf577e..dc0ccdfc4f414 100644 --- a/stdlib/TOML/test/testfiles/valid/arrays.jl +++ b/stdlib/TOML/test/testfiles/valid/arrays.jl @@ -1 +1 @@ -Dict{String,Any}("strings" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "a","type" => "string"), Dict{String,Any}("value" => "b","type" => "string"), Dict{String,Any}("value" => "c","type" => "string")],"type" => "array"),"ints" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1","type" => "integer"), Dict{String,Any}("value" => "2","type" => "integer"), Dict{String,Any}("value" => "3","type" => "integer")],"type" => "array"),"dates" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1987-07-05T17:45:00Z","type" => "datetime"), Dict{String,Any}("value" => "1979-05-27T07:32:00Z","type" => "datetime"), Dict{String,Any}("value" => "2006-06-01T11:00:00Z","type" => "datetime")],"type" => "array"),"comments" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1","type" => "integer"), Dict{String,Any}("value" => "2","type" => "integer")],"type" => "array"),"floats" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1.1","type" => "float"), Dict{String,Any}("value" => "2.1","type" => "float"), Dict{String,Any}("value" => "3.1","type" => "float")],"type" => "array")) \ No newline at end of file +Dict{String,Any}("strings" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "a","type" => "string"), Dict{String,Any}("value" => "b","type" => "string"), Dict{String,Any}("value" => "c","type" => "string")],"type" => "array"),"ints" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1","type" => "integer"), Dict{String,Any}("value" => "2","type" => "integer"), Dict{String,Any}("value" => "3","type" => "integer")],"type" => "array"),"dates" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1987-07-05T17:45:00Z","type" => "datetime"), Dict{String,Any}("value" => "1979-05-27T07:32:00Z","type" => "datetime"), Dict{String,Any}("value" => "2006-06-01T11:00:00Z","type" => "datetime")],"type" => "array"),"comments" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1","type" => "integer"), Dict{String,Any}("value" => "2","type" => "integer")],"type" => "array"),"floats" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "1.1","type" => "float"), Dict{String,Any}("value" => "2.1","type" => "float"), Dict{String,Any}("value" => "3.1","type" => "float")],"type" => "array")) diff --git a/stdlib/TOML/test/testfiles/valid/bool.jl b/stdlib/TOML/test/testfiles/valid/bool.jl index aaa55c790e409..5ce242aae3915 100644 --- a/stdlib/TOML/test/testfiles/valid/bool.jl +++ b/stdlib/TOML/test/testfiles/valid/bool.jl @@ -1 +1 @@ -Dict{String,Any}("f" => Dict{String,Any}("value" => "false","type" => "bool"),"t" => Dict{String,Any}("value" => "true","type" => "bool")) \ No newline at end of file +Dict{String,Any}("f" => Dict{String,Any}("value" => "false","type" => "bool"),"t" => Dict{String,Any}("value" => "true","type" => "bool")) diff --git a/stdlib/TOML/test/testfiles/valid/comments-at-eof.jl b/stdlib/TOML/test/testfiles/valid/comments-at-eof.jl index 230bf448a5740..45392c32b0ba1 100644 --- a/stdlib/TOML/test/testfiles/valid/comments-at-eof.jl +++ b/stdlib/TOML/test/testfiles/valid/comments-at-eof.jl @@ -1 +1 @@ -Dict{String,Any}("key" => Dict{String,Any}("value" => "value","type" => "string")) \ No newline at end of file +Dict{String,Any}("key" => Dict{String,Any}("value" => "value","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/comments-at-eof2.jl b/stdlib/TOML/test/testfiles/valid/comments-at-eof2.jl index 230bf448a5740..45392c32b0ba1 100644 --- a/stdlib/TOML/test/testfiles/valid/comments-at-eof2.jl +++ b/stdlib/TOML/test/testfiles/valid/comments-at-eof2.jl @@ -1 +1 @@ -Dict{String,Any}("key" => Dict{String,Any}("value" => "value","type" => "string")) \ No newline at end of file +Dict{String,Any}("key" => Dict{String,Any}("value" => "value","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/comments-at-eof2.toml b/stdlib/TOML/test/testfiles/valid/comments-at-eof2.toml index 026c93a8b8d78..090b474834610 100644 --- a/stdlib/TOML/test/testfiles/valid/comments-at-eof2.toml +++ b/stdlib/TOML/test/testfiles/valid/comments-at-eof2.toml @@ -1,2 +1,2 @@ # This is a full-line comment -key = "value" # This is a comment at the end of a line \ No newline at end of file +key = "value" # This is a comment at the end of a line diff --git a/stdlib/TOML/test/testfiles/valid/comments-everywhere.jl b/stdlib/TOML/test/testfiles/valid/comments-everywhere.jl index 3a0cc4b062fac..dd43fd70576e9 100644 --- a/stdlib/TOML/test/testfiles/valid/comments-everywhere.jl +++ b/stdlib/TOML/test/testfiles/valid/comments-everywhere.jl @@ -1 +1 @@ -Dict{String,Any}("group" => Dict{String,Any}("more" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "42","type" => "integer"), Dict{String,Any}("value" => "42","type" => "integer")],"type" => "array"),"answer" => Dict{String,Any}("value" => "42","type" => "integer"))) \ No newline at end of file +Dict{String,Any}("group" => Dict{String,Any}("more" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "42","type" => "integer"), Dict{String,Any}("value" => "42","type" => "integer")],"type" => "array"),"answer" => Dict{String,Any}("value" => "42","type" => "integer"))) diff --git a/stdlib/TOML/test/testfiles/valid/datetime-timezone.jl b/stdlib/TOML/test/testfiles/valid/datetime-timezone.jl index 7741e94a33b34..1759fd10e086c 100644 --- a/stdlib/TOML/test/testfiles/valid/datetime-timezone.jl +++ b/stdlib/TOML/test/testfiles/valid/datetime-timezone.jl @@ -1 +1 @@ -Dict{String,Any}("bestdayever" => Dict{String,Any}("value" => "2017-06-06T12:34:56-05:00","type" => "datetime")) \ No newline at end of file +Dict{String,Any}("bestdayever" => Dict{String,Any}("value" => "2017-06-06T12:34:56-05:00","type" => "datetime")) diff --git a/stdlib/TOML/test/testfiles/valid/datetime.jl b/stdlib/TOML/test/testfiles/valid/datetime.jl index a64b34c1e2247..8d6c630023e3f 100644 --- a/stdlib/TOML/test/testfiles/valid/datetime.jl +++ b/stdlib/TOML/test/testfiles/valid/datetime.jl @@ -1 +1 @@ -Dict{String,Any}("milliseconds" => Dict{String,Any}("value" => "1977-12-21T03:32:00.555+00:00","type" => "datetime"),"bestdayever" => Dict{String,Any}("value" => "1987-07-05T17:45:00Z","type" => "datetime"),"numoffset" => Dict{String,Any}("value" => "1977-06-28T12:32:00Z","type" => "datetime")) \ No newline at end of file +Dict{String,Any}("milliseconds" => Dict{String,Any}("value" => "1977-12-21T03:32:00.555+00:00","type" => "datetime"),"bestdayever" => Dict{String,Any}("value" => "1987-07-05T17:45:00Z","type" => "datetime"),"numoffset" => Dict{String,Any}("value" => "1977-06-28T12:32:00Z","type" => "datetime")) diff --git a/stdlib/TOML/test/testfiles/valid/double-quote-escape.jl b/stdlib/TOML/test/testfiles/valid/double-quote-escape.jl index fccbb9e75005c..934675aacf219 100644 --- a/stdlib/TOML/test/testfiles/valid/double-quote-escape.jl +++ b/stdlib/TOML/test/testfiles/valid/double-quote-escape.jl @@ -1 +1 @@ -Dict{String,Any}("test" => Dict{String,Any}("value" => "\"one\"","type" => "string")) \ No newline at end of file +Dict{String,Any}("test" => Dict{String,Any}("value" => "\"one\"","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/empty.jl b/stdlib/TOML/test/testfiles/valid/empty.jl index edc491b03230c..1adb380ba335b 100644 --- a/stdlib/TOML/test/testfiles/valid/empty.jl +++ b/stdlib/TOML/test/testfiles/valid/empty.jl @@ -1 +1 @@ -Dict{String,Any}() \ No newline at end of file +Dict{String,Any}() diff --git a/stdlib/TOML/test/testfiles/valid/escaped-escape.jl b/stdlib/TOML/test/testfiles/valid/escaped-escape.jl index 97c80799c4290..ed710ff1b4ff6 100644 --- a/stdlib/TOML/test/testfiles/valid/escaped-escape.jl +++ b/stdlib/TOML/test/testfiles/valid/escaped-escape.jl @@ -1 +1 @@ -Dict{String,Any}("answer" => Dict{String,Any}("value" => "\\x64","type" => "string")) \ No newline at end of file +Dict{String,Any}("answer" => Dict{String,Any}("value" => "\\x64","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/example.jl b/stdlib/TOML/test/testfiles/valid/example.jl index 8307133217263..b5b2bb86c5363 100644 --- a/stdlib/TOML/test/testfiles/valid/example.jl +++ b/stdlib/TOML/test/testfiles/valid/example.jl @@ -1 +1 @@ -Dict{String,Any}("best-day-ever" => Dict{String,Any}("value" => "1987-07-05T17:45:00Z","type" => "datetime"),"numtheory" => Dict{String,Any}("perfection" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "6","type" => "integer"), Dict{String,Any}("value" => "28","type" => "integer"), Dict{String,Any}("value" => "496","type" => "integer")],"type" => "array"),"boring" => Dict{String,Any}("value" => "false","type" => "bool"))) \ No newline at end of file +Dict{String,Any}("best-day-ever" => Dict{String,Any}("value" => "1987-07-05T17:45:00Z","type" => "datetime"),"numtheory" => Dict{String,Any}("perfection" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "6","type" => "integer"), Dict{String,Any}("value" => "28","type" => "integer"), Dict{String,Any}("value" => "496","type" => "integer")],"type" => "array"),"boring" => Dict{String,Any}("value" => "false","type" => "bool"))) diff --git a/stdlib/TOML/test/testfiles/valid/exponent-part-float.jl b/stdlib/TOML/test/testfiles/valid/exponent-part-float.jl index 5446e515ed2cb..34ed0bebb2fc0 100644 --- a/stdlib/TOML/test/testfiles/valid/exponent-part-float.jl +++ b/stdlib/TOML/test/testfiles/valid/exponent-part-float.jl @@ -1 +1 @@ -Dict{String,Any}("million" => Dict{String,Any}("value" => "1000000","type" => "float"),"minustenth" => Dict{String,Any}("value" => "-0.1","type" => "float"),"beast" => Dict{String,Any}("value" => "666","type" => "float")) \ No newline at end of file +Dict{String,Any}("million" => Dict{String,Any}("value" => "1000000","type" => "float"),"minustenth" => Dict{String,Any}("value" => "-0.1","type" => "float"),"beast" => Dict{String,Any}("value" => "666","type" => "float")) diff --git a/stdlib/TOML/test/testfiles/valid/float-exponent.jl b/stdlib/TOML/test/testfiles/valid/float-exponent.jl index b35991f2467fa..e64817ce85e92 100644 --- a/stdlib/TOML/test/testfiles/valid/float-exponent.jl +++ b/stdlib/TOML/test/testfiles/valid/float-exponent.jl @@ -1 +1 @@ -Dict{String,Any}("neg" => Dict{String,Any}("value" => "0.03","type" => "float"),"zero" => Dict{String,Any}("value" => "3.0","type" => "float"),"pointupper" => Dict{String,Any}("value" => "310.0","type" => "float"),"lower" => Dict{String,Any}("value" => "300.0","type" => "float"),"upper" => Dict{String,Any}("value" => "300.0","type" => "float"),"pos" => Dict{String,Any}("value" => "300.0","type" => "float"),"pointlower" => Dict{String,Any}("value" => "310.0","type" => "float")) \ No newline at end of file +Dict{String,Any}("neg" => Dict{String,Any}("value" => "0.03","type" => "float"),"zero" => Dict{String,Any}("value" => "3.0","type" => "float"),"pointupper" => Dict{String,Any}("value" => "310.0","type" => "float"),"lower" => Dict{String,Any}("value" => "300.0","type" => "float"),"upper" => Dict{String,Any}("value" => "300.0","type" => "float"),"pos" => Dict{String,Any}("value" => "300.0","type" => "float"),"pointlower" => Dict{String,Any}("value" => "310.0","type" => "float")) diff --git a/stdlib/TOML/test/testfiles/valid/float-underscore.jl b/stdlib/TOML/test/testfiles/valid/float-underscore.jl index c48c5ed7aadf6..e175c937f4d5b 100644 --- a/stdlib/TOML/test/testfiles/valid/float-underscore.jl +++ b/stdlib/TOML/test/testfiles/valid/float-underscore.jl @@ -1 +1 @@ -Dict{String,Any}("after" => Dict{String,Any}("value" => "3141.5927","type" => "float"),"exponent" => Dict{String,Any}("value" => "3e14","type" => "float"),"before" => Dict{String,Any}("value" => "3141.5927","type" => "float")) \ No newline at end of file +Dict{String,Any}("after" => Dict{String,Any}("value" => "3141.5927","type" => "float"),"exponent" => Dict{String,Any}("value" => "3e14","type" => "float"),"before" => Dict{String,Any}("value" => "3141.5927","type" => "float")) diff --git a/stdlib/TOML/test/testfiles/valid/float.jl b/stdlib/TOML/test/testfiles/valid/float.jl index 45a52e3af1675..d36893db363a3 100644 --- a/stdlib/TOML/test/testfiles/valid/float.jl +++ b/stdlib/TOML/test/testfiles/valid/float.jl @@ -1 +1 @@ -Dict{String,Any}("negpi" => Dict{String,Any}("value" => "-3.14","type" => "float"),"pospi" => Dict{String,Any}("value" => "3.14","type" => "float"),"pi" => Dict{String,Any}("value" => "3.14","type" => "float"),"zero-intpart" => Dict{String,Any}("value" => "0.123","type" => "float")) \ No newline at end of file +Dict{String,Any}("negpi" => Dict{String,Any}("value" => "-3.14","type" => "float"),"pospi" => Dict{String,Any}("value" => "3.14","type" => "float"),"pi" => Dict{String,Any}("value" => "3.14","type" => "float"),"zero-intpart" => Dict{String,Any}("value" => "0.123","type" => "float")) diff --git a/stdlib/TOML/test/testfiles/valid/implicit-and-explicit-after.jl b/stdlib/TOML/test/testfiles/valid/implicit-and-explicit-after.jl index f1ebc4aa65af0..376f0b95cf7e8 100644 --- a/stdlib/TOML/test/testfiles/valid/implicit-and-explicit-after.jl +++ b/stdlib/TOML/test/testfiles/valid/implicit-and-explicit-after.jl @@ -1 +1 @@ -Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))),"better" => Dict{String,Any}("value" => "43","type" => "integer"))) \ No newline at end of file +Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))),"better" => Dict{String,Any}("value" => "43","type" => "integer"))) diff --git a/stdlib/TOML/test/testfiles/valid/implicit-and-explicit-before.jl b/stdlib/TOML/test/testfiles/valid/implicit-and-explicit-before.jl index f1ebc4aa65af0..376f0b95cf7e8 100644 --- a/stdlib/TOML/test/testfiles/valid/implicit-and-explicit-before.jl +++ b/stdlib/TOML/test/testfiles/valid/implicit-and-explicit-before.jl @@ -1 +1 @@ -Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))),"better" => Dict{String,Any}("value" => "43","type" => "integer"))) \ No newline at end of file +Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))),"better" => Dict{String,Any}("value" => "43","type" => "integer"))) diff --git a/stdlib/TOML/test/testfiles/valid/implicit-groups.jl b/stdlib/TOML/test/testfiles/valid/implicit-groups.jl index 2fa2c2156bb67..5481705ddbc4e 100644 --- a/stdlib/TOML/test/testfiles/valid/implicit-groups.jl +++ b/stdlib/TOML/test/testfiles/valid/implicit-groups.jl @@ -1 +1 @@ -Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))))) \ No newline at end of file +Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))))) diff --git a/stdlib/TOML/test/testfiles/valid/inline-table-array.jl b/stdlib/TOML/test/testfiles/valid/inline-table-array.jl index 7e9f0ede91368..c9b1c336003d2 100644 --- a/stdlib/TOML/test/testfiles/valid/inline-table-array.jl +++ b/stdlib/TOML/test/testfiles/valid/inline-table-array.jl @@ -1 +1 @@ -Dict{String,Any}("people" => Any[Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bruce","type" => "string"),"last_name" => Dict{String,Any}("value" => "Springsteen","type" => "string")), Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Eric","type" => "string"),"last_name" => Dict{String,Any}("value" => "Clapton","type" => "string")), Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bob","type" => "string"),"last_name" => Dict{String,Any}("value" => "Seger","type" => "string"))]) \ No newline at end of file +Dict{String,Any}("people" => Any[Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bruce","type" => "string"),"last_name" => Dict{String,Any}("value" => "Springsteen","type" => "string")), Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Eric","type" => "string"),"last_name" => Dict{String,Any}("value" => "Clapton","type" => "string")), Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bob","type" => "string"),"last_name" => Dict{String,Any}("value" => "Seger","type" => "string"))]) diff --git a/stdlib/TOML/test/testfiles/valid/inline-table.jl b/stdlib/TOML/test/testfiles/valid/inline-table.jl index 39f9f52be24f3..ecbaec3304cad 100644 --- a/stdlib/TOML/test/testfiles/valid/inline-table.jl +++ b/stdlib/TOML/test/testfiles/valid/inline-table.jl @@ -1 +1 @@ -Dict{String,Any}("point" => Dict{String,Any}("x" => Dict{String,Any}("value" => "1","type" => "integer"),"y" => Dict{String,Any}("value" => "2","type" => "integer")),"name" => Dict{String,Any}("first" => Dict{String,Any}("value" => "Tom","type" => "string"),"last" => Dict{String,Any}("value" => "Preston-Werner","type" => "string")),"str-key" => Dict{String,Any}("a" => Dict{String,Any}("value" => "1","type" => "integer")),"simple" => Dict{String,Any}("a" => Dict{String,Any}("value" => "1","type" => "integer")),"table-array" => Any[Dict{String,Any}("a" => Dict{String,Any}("value" => "1","type" => "integer")), Dict{String,Any}("b" => Dict{String,Any}("value" => "2","type" => "integer"))]) \ No newline at end of file +Dict{String,Any}("point" => Dict{String,Any}("x" => Dict{String,Any}("value" => "1","type" => "integer"),"y" => Dict{String,Any}("value" => "2","type" => "integer")),"name" => Dict{String,Any}("first" => Dict{String,Any}("value" => "Tom","type" => "string"),"last" => Dict{String,Any}("value" => "Preston-Werner","type" => "string")),"str-key" => Dict{String,Any}("a" => Dict{String,Any}("value" => "1","type" => "integer")),"simple" => Dict{String,Any}("a" => Dict{String,Any}("value" => "1","type" => "integer")),"table-array" => Any[Dict{String,Any}("a" => Dict{String,Any}("value" => "1","type" => "integer")), Dict{String,Any}("b" => Dict{String,Any}("value" => "2","type" => "integer"))]) diff --git a/stdlib/TOML/test/testfiles/valid/integer-underscore.jl b/stdlib/TOML/test/testfiles/valid/integer-underscore.jl index 47a91e29343b4..84b2dfa1ad44e 100644 --- a/stdlib/TOML/test/testfiles/valid/integer-underscore.jl +++ b/stdlib/TOML/test/testfiles/valid/integer-underscore.jl @@ -1 +1 @@ -Dict{String,Any}("kilo" => Dict{String,Any}("value" => "1000","type" => "integer")) \ No newline at end of file +Dict{String,Any}("kilo" => Dict{String,Any}("value" => "1000","type" => "integer")) diff --git a/stdlib/TOML/test/testfiles/valid/integer.jl b/stdlib/TOML/test/testfiles/valid/integer.jl index ad8a94c4ccd9a..7150736c81415 100644 --- a/stdlib/TOML/test/testfiles/valid/integer.jl +++ b/stdlib/TOML/test/testfiles/valid/integer.jl @@ -1 +1 @@ -Dict{String,Any}("zero" => Dict{String,Any}("value" => "0","type" => "integer"),"posanswer" => Dict{String,Any}("value" => "42","type" => "integer"),"answer" => Dict{String,Any}("value" => "42","type" => "integer"),"neganswer" => Dict{String,Any}("value" => "-42","type" => "integer")) \ No newline at end of file +Dict{String,Any}("zero" => Dict{String,Any}("value" => "0","type" => "integer"),"posanswer" => Dict{String,Any}("value" => "42","type" => "integer"),"answer" => Dict{String,Any}("value" => "42","type" => "integer"),"neganswer" => Dict{String,Any}("value" => "-42","type" => "integer")) diff --git a/stdlib/TOML/test/testfiles/valid/key-equals-nospace.jl b/stdlib/TOML/test/testfiles/valid/key-equals-nospace.jl index 8b553e2655481..b88a68c41a2c1 100644 --- a/stdlib/TOML/test/testfiles/valid/key-equals-nospace.jl +++ b/stdlib/TOML/test/testfiles/valid/key-equals-nospace.jl @@ -1 +1 @@ -Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer")) \ No newline at end of file +Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer")) diff --git a/stdlib/TOML/test/testfiles/valid/key-numeric.jl b/stdlib/TOML/test/testfiles/valid/key-numeric.jl index 10cd8e0e80782..b6d00e0041bbe 100644 --- a/stdlib/TOML/test/testfiles/valid/key-numeric.jl +++ b/stdlib/TOML/test/testfiles/valid/key-numeric.jl @@ -1 +1 @@ -Dict{String,Any}("1" => Dict{String,Any}("value" => "1","type" => "integer")) \ No newline at end of file +Dict{String,Any}("1" => Dict{String,Any}("value" => "1","type" => "integer")) diff --git a/stdlib/TOML/test/testfiles/valid/key-space.jl b/stdlib/TOML/test/testfiles/valid/key-space.jl index 97439fcfccdd0..c43b2619a1c91 100644 --- a/stdlib/TOML/test/testfiles/valid/key-space.jl +++ b/stdlib/TOML/test/testfiles/valid/key-space.jl @@ -1 +1 @@ -Dict{String,Any}("a b" => Dict{String,Any}("value" => "1","type" => "integer")) \ No newline at end of file +Dict{String,Any}("a b" => Dict{String,Any}("value" => "1","type" => "integer")) diff --git a/stdlib/TOML/test/testfiles/valid/key-special-chars.jl b/stdlib/TOML/test/testfiles/valid/key-special-chars.jl index 90d934f45741e..31b05979dbf19 100644 --- a/stdlib/TOML/test/testfiles/valid/key-special-chars.jl +++ b/stdlib/TOML/test/testfiles/valid/key-special-chars.jl @@ -1 +1 @@ -Dict{String,Any}("~!@\$^&*()_+-`1234567890[]|/?><.,;:'" => Dict{String,Any}("value" => "1","type" => "integer")) \ No newline at end of file +Dict{String,Any}("~!@\$^&*()_+-`1234567890[]|/?><.,;:'" => Dict{String,Any}("value" => "1","type" => "integer")) diff --git a/stdlib/TOML/test/testfiles/valid/keys-with-dots.jl b/stdlib/TOML/test/testfiles/valid/keys-with-dots.jl index 52607b35b91ea..2d700e6e091ec 100644 --- a/stdlib/TOML/test/testfiles/valid/keys-with-dots.jl +++ b/stdlib/TOML/test/testfiles/valid/keys-with-dots.jl @@ -1 +1 @@ -Dict{String,Any}("with.dot" => Dict{String,Any}("value" => "2","type" => "integer"),"plain_table" => Dict{String,Any}("with.dot" => Dict{String,Any}("value" => "4","type" => "integer"),"plain" => Dict{String,Any}("value" => "3","type" => "integer")),"table" => Dict{String,Any}("withdot" => Dict{String,Any}("key.with.dots" => Dict{String,Any}("value" => "6","type" => "integer"),"plain" => Dict{String,Any}("value" => "5","type" => "integer"))),"plain" => Dict{String,Any}("value" => "1","type" => "integer")) \ No newline at end of file +Dict{String,Any}("with.dot" => Dict{String,Any}("value" => "2","type" => "integer"),"plain_table" => Dict{String,Any}("with.dot" => Dict{String,Any}("value" => "4","type" => "integer"),"plain" => Dict{String,Any}("value" => "3","type" => "integer")),"table" => Dict{String,Any}("withdot" => Dict{String,Any}("key.with.dots" => Dict{String,Any}("value" => "6","type" => "integer"),"plain" => Dict{String,Any}("value" => "5","type" => "integer"))),"plain" => Dict{String,Any}("value" => "1","type" => "integer")) diff --git a/stdlib/TOML/test/testfiles/valid/keys-with-dots.json b/stdlib/TOML/test/testfiles/valid/keys-with-dots.json index d2ee0021f6302..6dd7b28e636e2 100644 --- a/stdlib/TOML/test/testfiles/valid/keys-with-dots.json +++ b/stdlib/TOML/test/testfiles/valid/keys-with-dots.json @@ -11,4 +11,4 @@ "key.with.dots": {"type": "integer", "value": "6"} } } -} \ No newline at end of file +} diff --git a/stdlib/TOML/test/testfiles/valid/keys-with-dots.toml b/stdlib/TOML/test/testfiles/valid/keys-with-dots.toml index 24905929b22f3..65fcddf96a491 100644 --- a/stdlib/TOML/test/testfiles/valid/keys-with-dots.toml +++ b/stdlib/TOML/test/testfiles/valid/keys-with-dots.toml @@ -7,4 +7,4 @@ plain = 3 [table.withdot] plain = 5 -"key.with.dots" = 6 \ No newline at end of file +"key.with.dots" = 6 diff --git a/stdlib/TOML/test/testfiles/valid/long-float.jl b/stdlib/TOML/test/testfiles/valid/long-float.jl index b960a20d97605..d59e96f1cc019 100644 --- a/stdlib/TOML/test/testfiles/valid/long-float.jl +++ b/stdlib/TOML/test/testfiles/valid/long-float.jl @@ -1 +1 @@ -Dict{String,Any}("longpi" => Dict{String,Any}("value" => "3.141592653589793","type" => "float"),"neglongpi" => Dict{String,Any}("value" => "-3.141592653589793","type" => "float")) \ No newline at end of file +Dict{String,Any}("longpi" => Dict{String,Any}("value" => "3.141592653589793","type" => "float"),"neglongpi" => Dict{String,Any}("value" => "-3.141592653589793","type" => "float")) diff --git a/stdlib/TOML/test/testfiles/valid/long-integer.jl b/stdlib/TOML/test/testfiles/valid/long-integer.jl index 051da8e7c940b..63ae15b3d84c5 100644 --- a/stdlib/TOML/test/testfiles/valid/long-integer.jl +++ b/stdlib/TOML/test/testfiles/valid/long-integer.jl @@ -1 +1 @@ -Dict{String,Any}("answer" => Dict{String,Any}("value" => "9223372036854775807","type" => "integer"),"neganswer" => Dict{String,Any}("value" => "-9223372036854775808","type" => "integer")) \ No newline at end of file +Dict{String,Any}("answer" => Dict{String,Any}("value" => "9223372036854775807","type" => "integer"),"neganswer" => Dict{String,Any}("value" => "-9223372036854775808","type" => "integer")) diff --git a/stdlib/TOML/test/testfiles/valid/multiline-string.jl b/stdlib/TOML/test/testfiles/valid/multiline-string.jl index ba1eb06c41868..dad787a454c56 100644 --- a/stdlib/TOML/test/testfiles/valid/multiline-string.jl +++ b/stdlib/TOML/test/testfiles/valid/multiline-string.jl @@ -1 +1 @@ -Dict{String,Any}("equivalent_two" => Dict{String,Any}("value" => "The quick brown fox jumps over the lazy dog.","type" => "string"),"multiline_empty_four" => Dict{String,Any}("value" => "","type" => "string"),"multiline_empty_one" => Dict{String,Any}("value" => "","type" => "string"),"equivalent_three" => Dict{String,Any}("value" => "The quick brown fox jumps over the lazy dog.","type" => "string"),"equivalent_one" => Dict{String,Any}("value" => "The quick brown fox jumps over the lazy dog.","type" => "string"),"multiline_empty_two" => Dict{String,Any}("value" => "","type" => "string"),"multiline_empty_three" => Dict{String,Any}("value" => "","type" => "string")) \ No newline at end of file +Dict{String,Any}("equivalent_two" => Dict{String,Any}("value" => "The quick brown fox jumps over the lazy dog.","type" => "string"),"multiline_empty_four" => Dict{String,Any}("value" => "","type" => "string"),"multiline_empty_one" => Dict{String,Any}("value" => "","type" => "string"),"equivalent_three" => Dict{String,Any}("value" => "The quick brown fox jumps over the lazy dog.","type" => "string"),"equivalent_one" => Dict{String,Any}("value" => "The quick brown fox jumps over the lazy dog.","type" => "string"),"multiline_empty_two" => Dict{String,Any}("value" => "","type" => "string"),"multiline_empty_three" => Dict{String,Any}("value" => "","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/nested-inline-table-array.jl b/stdlib/TOML/test/testfiles/valid/nested-inline-table-array.jl index 32520dc02ae1b..0bc1d39c16608 100644 --- a/stdlib/TOML/test/testfiles/valid/nested-inline-table-array.jl +++ b/stdlib/TOML/test/testfiles/valid/nested-inline-table-array.jl @@ -1 +1 @@ -Dict{String,Any}("a" => Any[Dict{String,Any}("b" => Dict{String,Any}())]) \ No newline at end of file +Dict{String,Any}("a" => Any[Dict{String,Any}("b" => Dict{String,Any}())]) diff --git a/stdlib/TOML/test/testfiles/valid/newline-crlf.jl b/stdlib/TOML/test/testfiles/valid/newline-crlf.jl index 489a35df0ccf0..1bb4161f1a2a2 100644 --- a/stdlib/TOML/test/testfiles/valid/newline-crlf.jl +++ b/stdlib/TOML/test/testfiles/valid/newline-crlf.jl @@ -1 +1 @@ -Dict{String,Any}("newline" => Dict{String,Any}("value" => "crlf","type" => "string"),"os" => Dict{String,Any}("value" => "DOS","type" => "string")) \ No newline at end of file +Dict{String,Any}("newline" => Dict{String,Any}("value" => "crlf","type" => "string"),"os" => Dict{String,Any}("value" => "DOS","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/newline-lf.jl b/stdlib/TOML/test/testfiles/valid/newline-lf.jl index f422b1a0014a5..e9bb103ab934d 100644 --- a/stdlib/TOML/test/testfiles/valid/newline-lf.jl +++ b/stdlib/TOML/test/testfiles/valid/newline-lf.jl @@ -1 +1 @@ -Dict{String,Any}("newline" => Dict{String,Any}("value" => "lf","type" => "string"),"os" => Dict{String,Any}("value" => "unix","type" => "string")) \ No newline at end of file +Dict{String,Any}("newline" => Dict{String,Any}("value" => "lf","type" => "string"),"os" => Dict{String,Any}("value" => "unix","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/raw-multiline-string-win.jl b/stdlib/TOML/test/testfiles/valid/raw-multiline-string-win.jl index 7b5dcfb55251a..054b671ad564d 100644 --- a/stdlib/TOML/test/testfiles/valid/raw-multiline-string-win.jl +++ b/stdlib/TOML/test/testfiles/valid/raw-multiline-string-win.jl @@ -1 +1 @@ -Dict{String,Any}("multiline" => Dict{String,Any}("value" => "This string\r\nhas ' a quote character\r\nand more than\r\none newline\r\nin it.","type" => "string"),"firstnl" => Dict{String,Any}("value" => "This string has a ' quote character.","type" => "string"),"oneline" => Dict{String,Any}("value" => "This string has a ' quote character.","type" => "string")) \ No newline at end of file +Dict{String,Any}("multiline" => Dict{String,Any}("value" => "This string\r\nhas ' a quote character\r\nand more than\r\none newline\r\nin it.","type" => "string"),"firstnl" => Dict{String,Any}("value" => "This string has a ' quote character.","type" => "string"),"oneline" => Dict{String,Any}("value" => "This string has a ' quote character.","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/raw-multiline-string.jl b/stdlib/TOML/test/testfiles/valid/raw-multiline-string.jl index 308070b558fa4..e05360e1fcd84 100644 --- a/stdlib/TOML/test/testfiles/valid/raw-multiline-string.jl +++ b/stdlib/TOML/test/testfiles/valid/raw-multiline-string.jl @@ -1 +1 @@ -Dict{String,Any}("multiline" => Dict{String,Any}("value" => "This string\nhas ' a quote character\nand more than\none newline\nin it.","type" => "string"),"firstnl" => Dict{String,Any}("value" => "This string has a ' quote character.","type" => "string"),"oneline" => Dict{String,Any}("value" => "This string has a ' quote character.","type" => "string")) \ No newline at end of file +Dict{String,Any}("multiline" => Dict{String,Any}("value" => "This string\nhas ' a quote character\nand more than\none newline\nin it.","type" => "string"),"firstnl" => Dict{String,Any}("value" => "This string has a ' quote character.","type" => "string"),"oneline" => Dict{String,Any}("value" => "This string has a ' quote character.","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/raw-string.jl b/stdlib/TOML/test/testfiles/valid/raw-string.jl index c7e01501bb8f1..58a1929689bd3 100644 --- a/stdlib/TOML/test/testfiles/valid/raw-string.jl +++ b/stdlib/TOML/test/testfiles/valid/raw-string.jl @@ -1 +1 @@ -Dict{String,Any}("slash" => Dict{String,Any}("value" => "This string has a \\/ slash character.","type" => "string"),"formfeed" => Dict{String,Any}("value" => "This string has a \\f form feed character.","type" => "string"),"backslash" => Dict{String,Any}("value" => "This string has a \\\\ backslash character.","type" => "string"),"newline" => Dict{String,Any}("value" => "This string has a \\n new line character.","type" => "string"),"carriage" => Dict{String,Any}("value" => "This string has a \\r carriage return character.","type" => "string"),"backspace" => Dict{String,Any}("value" => "This string has a \\b backspace character.","type" => "string"),"tab" => Dict{String,Any}("value" => "This string has a \\t tab character.","type" => "string")) \ No newline at end of file +Dict{String,Any}("slash" => Dict{String,Any}("value" => "This string has a \\/ slash character.","type" => "string"),"formfeed" => Dict{String,Any}("value" => "This string has a \\f form feed character.","type" => "string"),"backslash" => Dict{String,Any}("value" => "This string has a \\\\ backslash character.","type" => "string"),"newline" => Dict{String,Any}("value" => "This string has a \\n new line character.","type" => "string"),"carriage" => Dict{String,Any}("value" => "This string has a \\r carriage return character.","type" => "string"),"backspace" => Dict{String,Any}("value" => "This string has a \\b backspace character.","type" => "string"),"tab" => Dict{String,Any}("value" => "This string has a \\t tab character.","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/right-curly-brace-after-boolean.jl b/stdlib/TOML/test/testfiles/valid/right-curly-brace-after-boolean.jl index 38c34b74ac937..25393187ca54d 100644 --- a/stdlib/TOML/test/testfiles/valid/right-curly-brace-after-boolean.jl +++ b/stdlib/TOML/test/testfiles/valid/right-curly-brace-after-boolean.jl @@ -1 +1 @@ -Dict{String,Any}("black" => Dict{String,Any}("allow_prereleases" => Dict{String,Any}("value" => "true","type" => "bool"),"python" => Dict{String,Any}("value" => ">3.6","type" => "string"),"version" => Dict{String,Any}("value" => ">=18.9b0","type" => "string"))) \ No newline at end of file +Dict{String,Any}("black" => Dict{String,Any}("allow_prereleases" => Dict{String,Any}("value" => "true","type" => "bool"),"python" => Dict{String,Any}("value" => ">3.6","type" => "string"),"version" => Dict{String,Any}("value" => ">=18.9b0","type" => "string"))) diff --git a/stdlib/TOML/test/testfiles/valid/right-curly-brace-after-boolean.json b/stdlib/TOML/test/testfiles/valid/right-curly-brace-after-boolean.json index a6c11ea86eea8..7fc7d6dafff06 100644 --- a/stdlib/TOML/test/testfiles/valid/right-curly-brace-after-boolean.json +++ b/stdlib/TOML/test/testfiles/valid/right-curly-brace-after-boolean.json @@ -13,4 +13,4 @@ "value":">=18.9b0" } } - } \ No newline at end of file + } diff --git a/stdlib/TOML/test/testfiles/valid/string-empty.jl b/stdlib/TOML/test/testfiles/valid/string-empty.jl index 42004373795c9..4adba9eed74f9 100644 --- a/stdlib/TOML/test/testfiles/valid/string-empty.jl +++ b/stdlib/TOML/test/testfiles/valid/string-empty.jl @@ -1 +1 @@ -Dict{String,Any}("answer" => Dict{String,Any}("value" => "","type" => "string")) \ No newline at end of file +Dict{String,Any}("answer" => Dict{String,Any}("value" => "","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/string-escapes.jl b/stdlib/TOML/test/testfiles/valid/string-escapes.jl index 2f7c117d16131..d153276492df3 100644 --- a/stdlib/TOML/test/testfiles/valid/string-escapes.jl +++ b/stdlib/TOML/test/testfiles/valid/string-escapes.jl @@ -1 +1 @@ -Dict{String,Any}("formfeed" => Dict{String,Any}("value" => "This string has a \f form feed character.","type" => "string"),"notunicode2" => Dict{String,Any}("value" => "This string does not have a unicode \\u escape.","type" => "string"),"backslash" => Dict{String,Any}("value" => "This string has a \\ backslash character.","type" => "string"),"notunicode3" => Dict{String,Any}("value" => "This string does not have a unicode \\u0075 escape.","type" => "string"),"notunicode4" => Dict{String,Any}("value" => "This string does not have a unicode \\u escape.","type" => "string"),"tab" => Dict{String,Any}("value" => "This string has a \t tab character.","type" => "string"),"carriage" => Dict{String,Any}("value" => "This string has a \r carriage return character.","type" => "string"),"quote" => Dict{String,Any}("value" => "This string has a \" quote character.","type" => "string"),"newline" => Dict{String,Any}("value" => "This string has a \n new line character.","type" => "string"),"notunicode1" => Dict{String,Any}("value" => "This string does not have a unicode \\u escape.","type" => "string"),"backspace" => Dict{String,Any}("value" => "This string has a \b backspace character.","type" => "string")) \ No newline at end of file +Dict{String,Any}("formfeed" => Dict{String,Any}("value" => "This string has a \f form feed character.","type" => "string"),"notunicode2" => Dict{String,Any}("value" => "This string does not have a unicode \\u escape.","type" => "string"),"backslash" => Dict{String,Any}("value" => "This string has a \\ backslash character.","type" => "string"),"notunicode3" => Dict{String,Any}("value" => "This string does not have a unicode \\u0075 escape.","type" => "string"),"notunicode4" => Dict{String,Any}("value" => "This string does not have a unicode \\u escape.","type" => "string"),"tab" => Dict{String,Any}("value" => "This string has a \t tab character.","type" => "string"),"carriage" => Dict{String,Any}("value" => "This string has a \r carriage return character.","type" => "string"),"quote" => Dict{String,Any}("value" => "This string has a \" quote character.","type" => "string"),"newline" => Dict{String,Any}("value" => "This string has a \n new line character.","type" => "string"),"notunicode1" => Dict{String,Any}("value" => "This string does not have a unicode \\u escape.","type" => "string"),"backspace" => Dict{String,Any}("value" => "This string has a \b backspace character.","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/string-nl.jl b/stdlib/TOML/test/testfiles/valid/string-nl.jl index 839d5d29a887c..1d60e431ee1bb 100644 --- a/stdlib/TOML/test/testfiles/valid/string-nl.jl +++ b/stdlib/TOML/test/testfiles/valid/string-nl.jl @@ -1 +1 @@ -Dict{String,Any}("nl_end" => Dict{String,Any}("value" => "value\n","type" => "string"),"lit_nl_mid" => Dict{String,Any}("value" => "val\\nue","type" => "string"),"nl_mid" => Dict{String,Any}("value" => "val\nue","type" => "string"),"lit_nl_uni" => Dict{String,Any}("value" => "val\\ue","type" => "string"),"lit_nl_end" => Dict{String,Any}("value" => "value\\n","type" => "string")) \ No newline at end of file +Dict{String,Any}("nl_end" => Dict{String,Any}("value" => "value\n","type" => "string"),"lit_nl_mid" => Dict{String,Any}("value" => "val\\nue","type" => "string"),"nl_mid" => Dict{String,Any}("value" => "val\nue","type" => "string"),"lit_nl_uni" => Dict{String,Any}("value" => "val\\ue","type" => "string"),"lit_nl_end" => Dict{String,Any}("value" => "value\\n","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/string-simple.jl b/stdlib/TOML/test/testfiles/valid/string-simple.jl index ea78bcb43c4b3..dbee3f00e38d9 100644 --- a/stdlib/TOML/test/testfiles/valid/string-simple.jl +++ b/stdlib/TOML/test/testfiles/valid/string-simple.jl @@ -1 +1 @@ -Dict{String,Any}("answer" => Dict{String,Any}("value" => "You are not drinking enough whisky.","type" => "string")) \ No newline at end of file +Dict{String,Any}("answer" => Dict{String,Any}("value" => "You are not drinking enough whisky.","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/string-with-pound.jl b/stdlib/TOML/test/testfiles/valid/string-with-pound.jl index d8f25e780830f..0acceceab6160 100644 --- a/stdlib/TOML/test/testfiles/valid/string-with-pound.jl +++ b/stdlib/TOML/test/testfiles/valid/string-with-pound.jl @@ -1 +1 @@ -Dict{String,Any}("pound" => Dict{String,Any}("value" => "We see no # comments here.","type" => "string"),"poundcomment" => Dict{String,Any}("value" => "But there are # some comments here.","type" => "string")) \ No newline at end of file +Dict{String,Any}("pound" => Dict{String,Any}("value" => "We see no # comments here.","type" => "string"),"poundcomment" => Dict{String,Any}("value" => "But there are # some comments here.","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/table-array-implicit.jl b/stdlib/TOML/test/testfiles/valid/table-array-implicit.jl index e255197c60b5c..fc8c932d672e7 100644 --- a/stdlib/TOML/test/testfiles/valid/table-array-implicit.jl +++ b/stdlib/TOML/test/testfiles/valid/table-array-implicit.jl @@ -1 +1 @@ -Dict{String,Any}("albums" => Dict{String,Any}("songs" => Any[Dict{String,Any}("name" => Dict{String,Any}("value" => "Glory Days","type" => "string"))])) \ No newline at end of file +Dict{String,Any}("albums" => Dict{String,Any}("songs" => Any[Dict{String,Any}("name" => Dict{String,Any}("value" => "Glory Days","type" => "string"))])) diff --git a/stdlib/TOML/test/testfiles/valid/table-array-many.jl b/stdlib/TOML/test/testfiles/valid/table-array-many.jl index 7e9f0ede91368..c9b1c336003d2 100644 --- a/stdlib/TOML/test/testfiles/valid/table-array-many.jl +++ b/stdlib/TOML/test/testfiles/valid/table-array-many.jl @@ -1 +1 @@ -Dict{String,Any}("people" => Any[Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bruce","type" => "string"),"last_name" => Dict{String,Any}("value" => "Springsteen","type" => "string")), Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Eric","type" => "string"),"last_name" => Dict{String,Any}("value" => "Clapton","type" => "string")), Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bob","type" => "string"),"last_name" => Dict{String,Any}("value" => "Seger","type" => "string"))]) \ No newline at end of file +Dict{String,Any}("people" => Any[Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bruce","type" => "string"),"last_name" => Dict{String,Any}("value" => "Springsteen","type" => "string")), Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Eric","type" => "string"),"last_name" => Dict{String,Any}("value" => "Clapton","type" => "string")), Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bob","type" => "string"),"last_name" => Dict{String,Any}("value" => "Seger","type" => "string"))]) diff --git a/stdlib/TOML/test/testfiles/valid/table-array-nest.jl b/stdlib/TOML/test/testfiles/valid/table-array-nest.jl index f9fbb34b6a39c..68ef1c97f41a4 100644 --- a/stdlib/TOML/test/testfiles/valid/table-array-nest.jl +++ b/stdlib/TOML/test/testfiles/valid/table-array-nest.jl @@ -1 +1 @@ -Dict{String,Any}("albums" => Any[Dict{String,Any}("name" => Dict{String,Any}("value" => "Born to Run","type" => "string"),"songs" => Any[Dict{String,Any}("name" => Dict{String,Any}("value" => "Jungleland","type" => "string")), Dict{String,Any}("name" => Dict{String,Any}("value" => "Meeting Across the River","type" => "string"))]), Dict{String,Any}("name" => Dict{String,Any}("value" => "Born in the USA","type" => "string"),"songs" => Any[Dict{String,Any}("name" => Dict{String,Any}("value" => "Glory Days","type" => "string")), Dict{String,Any}("name" => Dict{String,Any}("value" => "Dancing in the Dark","type" => "string"))])]) \ No newline at end of file +Dict{String,Any}("albums" => Any[Dict{String,Any}("name" => Dict{String,Any}("value" => "Born to Run","type" => "string"),"songs" => Any[Dict{String,Any}("name" => Dict{String,Any}("value" => "Jungleland","type" => "string")), Dict{String,Any}("name" => Dict{String,Any}("value" => "Meeting Across the River","type" => "string"))]), Dict{String,Any}("name" => Dict{String,Any}("value" => "Born in the USA","type" => "string"),"songs" => Any[Dict{String,Any}("name" => Dict{String,Any}("value" => "Glory Days","type" => "string")), Dict{String,Any}("name" => Dict{String,Any}("value" => "Dancing in the Dark","type" => "string"))])]) diff --git a/stdlib/TOML/test/testfiles/valid/table-array-one.jl b/stdlib/TOML/test/testfiles/valid/table-array-one.jl index 26f1597e0696b..830e3af323fc7 100644 --- a/stdlib/TOML/test/testfiles/valid/table-array-one.jl +++ b/stdlib/TOML/test/testfiles/valid/table-array-one.jl @@ -1 +1 @@ -Dict{String,Any}("people" => Any[Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bruce","type" => "string"),"last_name" => Dict{String,Any}("value" => "Springsteen","type" => "string"))]) \ No newline at end of file +Dict{String,Any}("people" => Any[Dict{String,Any}("first_name" => Dict{String,Any}("value" => "Bruce","type" => "string"),"last_name" => Dict{String,Any}("value" => "Springsteen","type" => "string"))]) diff --git a/stdlib/TOML/test/testfiles/valid/table-array-table-array.jl b/stdlib/TOML/test/testfiles/valid/table-array-table-array.jl index 536330b3afe5e..d379c1d3daca7 100644 --- a/stdlib/TOML/test/testfiles/valid/table-array-table-array.jl +++ b/stdlib/TOML/test/testfiles/valid/table-array-table-array.jl @@ -1 +1 @@ -Dict{String,Any}("a" => Any[Dict{String,Any}("b" => Any[Dict{String,Any}("c" => Dict{String,Any}("d" => Dict{String,Any}("value" => "val0","type" => "string"))), Dict{String,Any}("c" => Dict{String,Any}("d" => Dict{String,Any}("value" => "val1","type" => "string")))])]) \ No newline at end of file +Dict{String,Any}("a" => Any[Dict{String,Any}("b" => Any[Dict{String,Any}("c" => Dict{String,Any}("d" => Dict{String,Any}("value" => "val0","type" => "string"))), Dict{String,Any}("c" => Dict{String,Any}("d" => Dict{String,Any}("value" => "val1","type" => "string")))])]) diff --git a/stdlib/TOML/test/testfiles/valid/table-empty.jl b/stdlib/TOML/test/testfiles/valid/table-empty.jl index 8ed753e5f5e57..a62b1dc36cdf3 100644 --- a/stdlib/TOML/test/testfiles/valid/table-empty.jl +++ b/stdlib/TOML/test/testfiles/valid/table-empty.jl @@ -1 +1 @@ -Dict{String,Any}("a" => Dict{String,Any}()) \ No newline at end of file +Dict{String,Any}("a" => Dict{String,Any}()) diff --git a/stdlib/TOML/test/testfiles/valid/table-no-eol.jl b/stdlib/TOML/test/testfiles/valid/table-no-eol.jl index e9014a1e55ee8..4a103a5e13f54 100644 --- a/stdlib/TOML/test/testfiles/valid/table-no-eol.jl +++ b/stdlib/TOML/test/testfiles/valid/table-no-eol.jl @@ -1 +1 @@ -Dict{String,Any}("table" => Dict{String,Any}()) \ No newline at end of file +Dict{String,Any}("table" => Dict{String,Any}()) diff --git a/stdlib/TOML/test/testfiles/valid/table-no-eol.toml b/stdlib/TOML/test/testfiles/valid/table-no-eol.toml index 741b2d1c2056a..f1098fdacaa27 100644 --- a/stdlib/TOML/test/testfiles/valid/table-no-eol.toml +++ b/stdlib/TOML/test/testfiles/valid/table-no-eol.toml @@ -1 +1 @@ -[table] \ No newline at end of file +[table] diff --git a/stdlib/TOML/test/testfiles/valid/table-sub-empty.jl b/stdlib/TOML/test/testfiles/valid/table-sub-empty.jl index ced2225a6cd90..448cd9237d7d0 100644 --- a/stdlib/TOML/test/testfiles/valid/table-sub-empty.jl +++ b/stdlib/TOML/test/testfiles/valid/table-sub-empty.jl @@ -1 +1 @@ -Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}())) \ No newline at end of file +Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}())) diff --git a/stdlib/TOML/test/testfiles/valid/table-whitespace.jl b/stdlib/TOML/test/testfiles/valid/table-whitespace.jl index 7a74b1b6b0fa6..1af4cc9cb98e8 100644 --- a/stdlib/TOML/test/testfiles/valid/table-whitespace.jl +++ b/stdlib/TOML/test/testfiles/valid/table-whitespace.jl @@ -1 +1 @@ -Dict{String,Any}("valid key" => Dict{String,Any}()) \ No newline at end of file +Dict{String,Any}("valid key" => Dict{String,Any}()) diff --git a/stdlib/TOML/test/testfiles/valid/table-with-literal-string.jl b/stdlib/TOML/test/testfiles/valid/table-with-literal-string.jl index b4ea19cf15d48..7157a1b75e6ea 100644 --- a/stdlib/TOML/test/testfiles/valid/table-with-literal-string.jl +++ b/stdlib/TOML/test/testfiles/valid/table-with-literal-string.jl @@ -1 +1 @@ -Dict{String,Any}("a" => Dict{String,Any}("\"b\"" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))))) \ No newline at end of file +Dict{String,Any}("a" => Dict{String,Any}("\"b\"" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))))) diff --git a/stdlib/TOML/test/testfiles/valid/table-with-pound.jl b/stdlib/TOML/test/testfiles/valid/table-with-pound.jl index d95d29b2e7eae..d1c99bb09e8ab 100644 --- a/stdlib/TOML/test/testfiles/valid/table-with-pound.jl +++ b/stdlib/TOML/test/testfiles/valid/table-with-pound.jl @@ -1 +1 @@ -Dict{String,Any}("key#group" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))) \ No newline at end of file +Dict{String,Any}("key#group" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))) diff --git a/stdlib/TOML/test/testfiles/valid/table-with-single-quotes.jl b/stdlib/TOML/test/testfiles/valid/table-with-single-quotes.jl index 2fa2c2156bb67..5481705ddbc4e 100644 --- a/stdlib/TOML/test/testfiles/valid/table-with-single-quotes.jl +++ b/stdlib/TOML/test/testfiles/valid/table-with-single-quotes.jl @@ -1 +1 @@ -Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))))) \ No newline at end of file +Dict{String,Any}("a" => Dict{String,Any}("b" => Dict{String,Any}("c" => Dict{String,Any}("answer" => Dict{String,Any}("value" => "42","type" => "integer"))))) diff --git a/stdlib/TOML/test/testfiles/valid/underscored-float.jl b/stdlib/TOML/test/testfiles/valid/underscored-float.jl index 7ee220ca0cf8b..420cefd96e481 100644 --- a/stdlib/TOML/test/testfiles/valid/underscored-float.jl +++ b/stdlib/TOML/test/testfiles/valid/underscored-float.jl @@ -1 +1 @@ -Dict{String,Any}("electron_mass" => Dict{String,Any}("value" => "9.109109383e-31","type" => "float")) \ No newline at end of file +Dict{String,Any}("electron_mass" => Dict{String,Any}("value" => "9.109109383e-31","type" => "float")) diff --git a/stdlib/TOML/test/testfiles/valid/underscored-integer.jl b/stdlib/TOML/test/testfiles/valid/underscored-integer.jl index 0aa27784aba48..4fb9d43398a9c 100644 --- a/stdlib/TOML/test/testfiles/valid/underscored-integer.jl +++ b/stdlib/TOML/test/testfiles/valid/underscored-integer.jl @@ -1 +1 @@ -Dict{String,Any}("million" => Dict{String,Any}("value" => "1000000","type" => "integer")) \ No newline at end of file +Dict{String,Any}("million" => Dict{String,Any}("value" => "1000000","type" => "integer")) diff --git a/stdlib/TOML/test/testfiles/valid/unicode-escape.jl b/stdlib/TOML/test/testfiles/valid/unicode-escape.jl index a2e66db0d51e9..d773bc04b9ce5 100644 --- a/stdlib/TOML/test/testfiles/valid/unicode-escape.jl +++ b/stdlib/TOML/test/testfiles/valid/unicode-escape.jl @@ -1 +1 @@ -Dict{String,Any}("answer8" => Dict{String,Any}("value" => "δ","type" => "string"),"answer4" => Dict{String,Any}("value" => "δ","type" => "string")) \ No newline at end of file +Dict{String,Any}("answer8" => Dict{String,Any}("value" => "δ","type" => "string"),"answer4" => Dict{String,Any}("value" => "δ","type" => "string")) diff --git a/stdlib/TOML/test/testfiles/valid/unicode-literal.jl b/stdlib/TOML/test/testfiles/valid/unicode-literal.jl index bdcb5d4cf0ea0..675b94774c343 100644 --- a/stdlib/TOML/test/testfiles/valid/unicode-literal.jl +++ b/stdlib/TOML/test/testfiles/valid/unicode-literal.jl @@ -1 +1 @@ -Dict{String,Any}("answer" => Dict{String,Any}("value" => "δ","type" => "string")) \ No newline at end of file +Dict{String,Any}("answer" => Dict{String,Any}("value" => "δ","type" => "string")) diff --git a/stdlib/TOML/test/utils/convert_json_to_jl.jl b/stdlib/TOML/test/utils/convert_json_to_jl.jl index a2c049fac0c7d..00d4fac69084b 100644 --- a/stdlib/TOML/test/utils/convert_json_to_jl.jl +++ b/stdlib/TOML/test/utils/convert_json_to_jl.jl @@ -16,4 +16,4 @@ function convert_json_files() write(splitext(file)[1] * ".jl", d_jl) end end -end \ No newline at end of file +end diff --git a/test/checked.jl b/test/checked.jl index 938002cbabcdc..bacda3db75dec 100644 --- a/test/checked.jl +++ b/test/checked.jl @@ -357,4 +357,4 @@ end @test checked_mul(1, 2, 3, 4, 5, 6) === 720 @test checked_mul(1, 2, 3, 4, 5, 6, 7) === 5040 @test checked_mul(1, 2, 3, 4, 5, 6, 7, 8) === 40320 -end \ No newline at end of file +end diff --git a/test/compiler/codegen.jl b/test/compiler/codegen.jl index ec89ac9cd72a4..d9f2bb1dbfcc0 100644 --- a/test/compiler/codegen.jl +++ b/test/compiler/codegen.jl @@ -716,4 +716,4 @@ end f_donotdelete_input(x) = Base.donotdelete(x+1) f_donotdelete_const() = Base.donotdelete(1+1) @test occursin("call void (...) @jl_f_donotdelete(i64", get_llvm(f_donotdelete_input, Tuple{Int64}, true, false, false)) -@test occursin("call void (...) @jl_f_donotdelete()", get_llvm(f_donotdelete_const, Tuple{}, true, false, false)) \ No newline at end of file +@test occursin("call void (...) @jl_f_donotdelete()", get_llvm(f_donotdelete_const, Tuple{}, true, false, false)) diff --git a/test/file.jl b/test/file.jl index a7c0b6dca125d..2c09b3edaed2e 100644 --- a/test/file.jl +++ b/test/file.jl @@ -193,7 +193,7 @@ end t = i % 2 == 0 ? mktempfile() : mktempdir() push!(temps, t) @test ispath(t) - @test length(TEMP_CLEANUP) == i  + @test length(TEMP_CLEANUP) == i @test TEMP_CLEANUP_MAX[] == n # delete 1/3 of the temp paths i % 3 == 0 && rm(t, recursive=true, force=true) diff --git a/test/llvmpasses/aliasscopes.jl b/test/llvmpasses/aliasscopes.jl index 31b78cae922b5..5c0fe48091ade 100644 --- a/test/llvmpasses/aliasscopes.jl +++ b/test/llvmpasses/aliasscopes.jl @@ -58,4 +58,3 @@ end emit(simple, Vector{Float64}, Vector{Float64}) emit(constargs, Vector{Float64}, Const{Float64, 1}) emit(micro_ker!, Matrix{Float64}, Vector{Float64}, Vector{Float64}, Int64, Int64, Int64) - diff --git a/test/llvmpasses/julia-licm.ll b/test/llvmpasses/julia-licm.ll index b7c088062ce10..0fff844e3affc 100644 --- a/test/llvmpasses/julia-licm.ll +++ b/test/llvmpasses/julia-licm.ll @@ -73,4 +73,4 @@ attributes #4 = { inaccessiblemem_or_argmemonly } !4 = !{!"jtbaa_value", !5, i64 0} !5 = !{!"jtbaa_data", !6, i64 0} !6 = !{!"jtbaa", !7, i64 0} -!7 = !{!"jtbaa"} \ No newline at end of file +!7 = !{!"jtbaa"} diff --git a/test/misc.jl b/test/misc.jl index efc647667f4b6..1c94b9b8f78a5 100644 --- a/test/misc.jl +++ b/test/misc.jl @@ -439,10 +439,10 @@ V8 = [ ([0xe1,0x88,0xb4],[0x1234]) ([0xea,0xaf,0x8d],[0xabcd]) ([0xed,0x9f,0xbf],[0xd7ff]) - ([0xed,0xa0,0x80],[0xd800]) # invalid code point – high surrogate - ([0xed,0xaf,0xbf],[0xdbff]) # invalid code point – high surrogate - ([0xed,0xb0,0x80],[0xdc00]) # invalid code point – low surrogate - ([0xed,0xbf,0xbf],[0xdfff]) # invalid code point – low surrogate + ([0xed,0xa0,0x80],[0xd800]) # invalid code point – high surrogate + ([0xed,0xaf,0xbf],[0xdbff]) # invalid code point – high surrogate + ([0xed,0xb0,0x80],[0xdc00]) # invalid code point – low surrogate + ([0xed,0xbf,0xbf],[0xdfff]) # invalid code point – low surrogate ([0xee,0x80,0x80],[0xe000]) ([0xef,0xbf,0xbf],[0xffff]) # 4-byte diff --git a/test/osutils.jl b/test/osutils.jl index 997f82fd4cce2..36f2878017129 100644 --- a/test/osutils.jl +++ b/test/osutils.jl @@ -68,4 +68,4 @@ if Sys.islinux() && Sys.which("readelf") !== nothing end end end -end \ No newline at end of file +end diff --git a/test/read.jl b/test/read.jl index 91b5043ae2a55..7a5acbcca969e 100644 --- a/test/read.jl +++ b/test/read.jl @@ -658,4 +658,3 @@ end @test isempty(r) && isempty(collect(r)) end end - diff --git a/test/show.jl b/test/show.jl index ba9f227e53e52..9a784c01528ef 100644 --- a/test/show.jl +++ b/test/show.jl @@ -528,7 +528,7 @@ module M1 var"#foo#"() = 2 end module var"#43932#" end @test endswith(sprint(show, var"#43932#"), ".var\"#43932#\"") -# issue #12477 +# issue #12477 @test sprint(show, Union{Int64, Int32, Int16, Int8, Float64}) == "Union{Float64, Int16, Int32, Int64, Int8}" # Function and array reference precedence @@ -843,7 +843,7 @@ end end lower = length("\"\" ⋯ $(ncodeunits(str)) bytes ⋯ \"\"") limit = max(limit, lower) - if length(str) + 2 ≤ limit + if length(str) + 2 ≤ limit @test eval(Meta.parse(out)) == str else @test limit-!isascii(str) <= length(out) <= limit diff --git a/test/strings/basic.jl b/test/strings/basic.jl index b20c18e636db7..0cef6569d3aac 100644 --- a/test/strings/basic.jl +++ b/test/strings/basic.jl @@ -854,7 +854,7 @@ end p = prevind(s, p) @test prevind(s, x, j) == p end - if n ≤ ncodeunits(s) + if n ≤ ncodeunits(s) n = nextind(s, n) @test nextind(s, x, j) == n end diff --git a/test/testhelpers/SizedArrays.jl b/test/testhelpers/SizedArrays.jl index 64c816f740fb2..dfcc5b79f1387 100644 --- a/test/testhelpers/SizedArrays.jl +++ b/test/testhelpers/SizedArrays.jl @@ -1,40 +1,40 @@ -# This file is a part of Julia. License is MIT: https://julialang.org/license - -# SizedArrays - -# This test file defines an array wrapper with statical size. It can be used to -# test the action of LinearAlgebra with non-number eltype. - -module SizedArrays - -import Base: +, *, == - -export SizedArray - -struct SizedArray{SZ,T,N,A<:AbstractArray} <: AbstractArray{T,N} - data::A - function SizedArray{SZ}(data::AbstractArray{T,N}) where {SZ,T,N} - SZ == size(data) || throw(ArgumentError("size mismatch!")) - new{SZ,T,N,typeof(data)}(data) - end - function SizedArray{SZ,T,N,A}(data::AbstractArray{T,N}) where {SZ,T,N,A} - SZ == size(data) || throw(ArgumentError("size mismatch!")) - new{SZ,T,N,A}(A(data)) - end -end -Base.convert(::Type{SizedArray{SZ,T,N,A}}, data::AbstractArray) where {SZ,T,N,A} = SizedArray{SZ,T,N,A}(data) - -# Minimal AbstractArray interface -Base.size(a::SizedArray) = size(typeof(a)) -Base.size(::Type{<:SizedArray{SZ}}) where {SZ} = SZ -Base.getindex(A::SizedArray, i...) = getindex(A.data, i...) -Base.zero(::Type{T}) where T <: SizedArray = SizedArray{size(T)}(zeros(eltype(T), size(T))) -+(S1::SizedArray{SZ}, S2::SizedArray{SZ}) where {SZ} = SizedArray{SZ}(S1.data + S2.data) -==(S1::SizedArray{SZ}, S2::SizedArray{SZ}) where {SZ} = S1.data == S2.data -function *(S1::SizedArray, S2::SizedArray) - 0 < ndims(S1) < 3 && 0 < ndims(S2) < 3 && size(S1, 2) == size(S2, 1) || throw(ArgumentError("size mismatch!")) - data = S1.data * S2.data - SZ = ndims(data) == 1 ? (size(S1, 1), ) : (size(S1, 1), size(S2, 2)) - SizedArray{SZ}(data) -end -end +# This file is a part of Julia. License is MIT: https://julialang.org/license + +# SizedArrays + +# This test file defines an array wrapper with statical size. It can be used to +# test the action of LinearAlgebra with non-number eltype. + +module SizedArrays + +import Base: +, *, == + +export SizedArray + +struct SizedArray{SZ,T,N,A<:AbstractArray} <: AbstractArray{T,N} + data::A + function SizedArray{SZ}(data::AbstractArray{T,N}) where {SZ,T,N} + SZ == size(data) || throw(ArgumentError("size mismatch!")) + new{SZ,T,N,typeof(data)}(data) + end + function SizedArray{SZ,T,N,A}(data::AbstractArray{T,N}) where {SZ,T,N,A} + SZ == size(data) || throw(ArgumentError("size mismatch!")) + new{SZ,T,N,A}(A(data)) + end +end +Base.convert(::Type{SizedArray{SZ,T,N,A}}, data::AbstractArray) where {SZ,T,N,A} = SizedArray{SZ,T,N,A}(data) + +# Minimal AbstractArray interface +Base.size(a::SizedArray) = size(typeof(a)) +Base.size(::Type{<:SizedArray{SZ}}) where {SZ} = SZ +Base.getindex(A::SizedArray, i...) = getindex(A.data, i...) +Base.zero(::Type{T}) where T <: SizedArray = SizedArray{size(T)}(zeros(eltype(T), size(T))) ++(S1::SizedArray{SZ}, S2::SizedArray{SZ}) where {SZ} = SizedArray{SZ}(S1.data + S2.data) +==(S1::SizedArray{SZ}, S2::SizedArray{SZ}) where {SZ} = S1.data == S2.data +function *(S1::SizedArray, S2::SizedArray) + 0 < ndims(S1) < 3 && 0 < ndims(S2) < 3 && size(S1, 2) == size(S2, 1) || throw(ArgumentError("size mismatch!")) + data = S1.data * S2.data + SZ = ndims(data) == 1 ? (size(S1, 1), ) : (size(S1, 1), size(S2, 2)) + SizedArray{SZ}(data) +end +end diff --git a/test/testhelpers/llvmpasses.jl b/test/testhelpers/llvmpasses.jl index 0b443c3eb1535..9900dd15b5d40 100644 --- a/test/testhelpers/llvmpasses.jl +++ b/test/testhelpers/llvmpasses.jl @@ -24,4 +24,3 @@ function emit(f, tt...) end counter+=1 end - diff --git a/test/version.jl b/test/version.jl index d9083b9c49cf1..136277a49cc70 100644 --- a/test/version.jl +++ b/test/version.jl @@ -233,4 +233,3 @@ io = IOBuffer() @test VersionNumber(true, 0x2, Int128(3), (GenericString("rc"), 0x1)) == v"1.2.3-rc.1" @test VersionNumber(true, 0x2, Int128(3), (GenericString("rc"), 0x1)) == v"1.2.3-rc.1" @test VersionNumber(true, 0x2, Int128(3), (), (GenericString("sp"), 0x2)) == v"1.2.3+sp.2" -