Skip to content

Commit f53e35c

Browse files
committed
More type test fixing
1 parent 2f5b49a commit f53e35c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ o2 = @inferred setproperties(o, brand=10, nwheels=o.nwheels)
129129
convert_f(foo) = convert(foo.a, 10)
130130
@test_throws(Exception, @inferred convert_f(Foo_fp(Int, 2)))
131131
@inferred convert_f(Foo_np(Int, 2))
132-
@test fieldtype(typeof(Foo_np(Int, 2)), :a) == Type{Int64}
132+
@test fieldtype(typeof(Foo_np(Int, 2)), :a) == Type{Int}
133133

134134
@qstruct Issue11(;no_default_value)
135135
@test_throws UndefKeywordError Issue11()
@@ -150,8 +150,8 @@ end
150150
@test string(ParamAction(1)) == "ParamAction{Int64}(1)"
151151

152152
io = IOBuffer();
153-
show(io, MIME"text/plain"(), ParamAction(1))
154-
@test String(take!(io)) == "ParamAction{Int64}(1)"
153+
show(io, MIME"text/plain"(), ParamAction(1.0))
154+
@test String(take!(io)) == "ParamAction{Float64}(1)"
155155

156156
@qfunctor Bus(x)(y) <: Real = 2
157157
@test Bus(2) isa Real

0 commit comments

Comments
 (0)