Skip to content

Commit 6e6cc4e

Browse files
committed
add tests for #265
1 parent 6ee7064 commit 6e6cc4e

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

test/choosetests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Upon return, `tests` is a vector of fully-expanded test names, and
1515
""" ->
1616
function choosetests(choices = [])
1717
testnames = [
18-
"linalg", "subarray", "core", "inference", "keywordargs", "numbers",
18+
"linalg", "subarray", "core", "inference", "worlds",
19+
"keywordargs", "numbers",
1920
"printf", "char", "string", "triplequote", "unicode",
2021
"dates", "dict", "hashing", "iobuffer", "staged", "offsetarray",
2122
"arrayops", "tuple", "reduce", "reducedim", "random", "abstractarray",

test/core.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,7 @@ typealias PossiblyInvalidUnion{T} Union{T,Int}
33253325
# issue #13007
33263326
call13007{T,N}(::Type{Array{T,N}}) = 0
33273327
call13007(::Type{Array}) = 1
3328-
@test length(Base._methods(call13007, Tuple{Type{TypeVar(:_,Array)}}, 4)) == 2
3328+
@test length(Base._methods(call13007, Tuple{Type{TypeVar(:_,Array)}}, 4, typemax(UInt))) == 2
33293329

33303330
# detecting cycles during type intersection, e.g. #1631
33313331
cycle_in_solve_tvar_constraints{S}(::Type{Nullable{S}}, x::S) = 0

test/worlds.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file is a part of Julia. License is MIT: http://julialang.org/license
2+
3+
# tests for accurate updating of method tables
4+
5+
# test method replacement
6+
7+
# test signature widening
8+
9+
# test signature narrowing
10+
11+
# test constructors
12+
13+
# test oldworld call / inference

0 commit comments

Comments
 (0)