Skip to content

Commit

Permalink
Merge pull request #467 from JuliaLang/fe/news-and-tests
Browse files Browse the repository at this point in the history
Some missed readme entries and tests
  • Loading branch information
quinnj authored Jan 22, 2018
2 parents 0711117 + 354500d commit a342f94
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ Currently, the `@compat` macro supports the following syntaxes:
* `using Compat.Random` is provided on versions older than 0.7, where this library is
not yet part of the standard library ([#24874]).

* `using Compat.Libdl` is provided on versions older than 0.7, where this library is
not yet part of the standard library ([#25459]).

## New functions, macros, and methods

* `@views` takes an expression and converts all slices to views ([#20164]), while
Expand Down Expand Up @@ -294,6 +297,8 @@ Currently, the `@compat` macro supports the following syntaxes:
* `module_parent`, `Base.function_module`, and `Base.datatype_module` are now methods of
a new function called `parentmodule` ([#25629]).

* `find` is now `findall` ([#25545]).

## New macros

* `@__DIR__` has been added ([#18380])
Expand Down Expand Up @@ -473,4 +478,7 @@ includes this fix. Find the minimum version from there.
[#25227]: https://github.com/JuliaLang/julia/issues/25227
[#25249]: https://github.com/JuliaLang/julia/issues/25249
[#25402]: https://github.com/JuliaLang/julia/issues/25402
[#25459]: https://github.com/JuliaLang/julia/issues/25459
[#25545]: https://github.com/JuliaLang/julia/issues/25545
[#25571]: https://github.com/JuliaLang/julia/issues/25571
[#25629]: https://github.com/JuliaLang/julia/issues/25629
11 changes: 11 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,17 @@ end
@test parentmodule(Int) == Core
@test parentmodule(Array) == Core

# 0.7.0-DEV.3382
module TestLibdl
using Compat
using Compat.Libdl
using Compat.Test
@test isdefined(@__MODULE__, :Libdl)
end

# 0.7.0-DEV.3415
@test findall(x -> x==1, [1, 2, 3, 2, 1]) == [1, 5]

if VERSION < v"0.6.0"
include("deprecated.jl")
end
Expand Down

0 comments on commit a342f94

Please sign in to comment.