Skip to content

Commit 0977ebb

Browse files
committed
fix test
1 parent e7c385b commit 0977ebb

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ struct FnType{X<:Tuple,Y} end
131131
(f::Sym{<:FnType})(args...) = term(f, args...)
132132

133133
function (f::Sym)(args...)
134-
error("Sym $f of type $F are not callable. " *
134+
error("Sym $f is not callable. " *
135135
"Use @syms $f(var1, var2,...) to create it as a callable. " *
136136
"See ?@fun for more options")
137137
end

test/basics.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ end
4545

4646
@test rem2pi(a, RoundNearest) == Term{Real}(rem2pi, [a, RoundNearest])
4747
end
48+
49+
@testset "err test" begin
50+
@syms t()
51+
@test_throws ErrorException t(2)
52+
end

test/order.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ end
5252
end
5353

5454
@testset "0-arg variable calls ordering" begin
55-
@syms z ρ
55+
@syms z() ρ()
5656

5757
@test -1z() <ρ()
5858
@test !(ρ() <-1z())

0 commit comments

Comments
 (0)