1- using SymbolicUtils: Symbolic, FnType, symtype, operation, arguments, issym, isterm, BasicSymbolic, term
1+ using SymbolicUtils: Symbolic, FnType, symtype, operation, arguments, issym, isterm, BasicSymbolic, term, get_name
22using SymbolicUtils
33using IfElse: ifelse
44using Setfield
@@ -9,17 +9,17 @@ using Test
99 @syms a b:: Float64 f (:: Real ) g (p, h (q:: Real )):: Int
1010
1111 @test issym (a) && symtype (a) == Number
12- @test a . impl . name === :a
12+ @test get_name (a) === :a
1313
1414 @test issym (b) && symtype (b) == Float64
1515 @test nameof (b) === :b
1616
1717 @test issym (f)
18- @test f . impl . name === :f
18+ @test get_name (f) === :f
1919 @test symtype (f) == FnType{Tuple{Real}, Number, Nothing}
2020
2121 @test issym (g)
22- @test g . impl . name === :g
22+ @test get_name (g) === :g
2323 @test symtype (g) == FnType{Tuple{Number, FnType{Tuple{Real}, Number, Nothing}}, Int, Nothing}
2424
2525 @test isterm (f (b))
@@ -37,14 +37,14 @@ using Test
3737
3838 @syms (f:: typeof (max))(:: Real , :: AbstractFloat ):: Number a:: Real
3939 @test issym (f)
40- @test f . impl . name == :f
40+ @test get_name (f) == :f
4141 @test symtype (f) == FnType{Tuple{Real, AbstractFloat}, Number, typeof (max)}
4242 @test isterm (f (a, b))
4343 @test symtype (f (a, b)) == Number
4444
4545 @syms g (p, (h:: typeof (identity))(q:: Real ):: Number ):: Number
4646 @test issym (g)
47- @test g . impl . name == :g
47+ @test get_name (g) == :g
4848 @test symtype (g) == FnType{Tuple{Number, FnType{Tuple{Real}, Number, typeof (identity)}}, Number, Nothing}
4949 @test_throws " not a subtype of" g (a, f)
5050 @syms (f:: typeof (identity))(:: Real ):: Number
0 commit comments