Skip to content

Commit 7e62529

Browse files
author
Mal Miller
committed
Move test type definitions out of testset
1 parent 7bad5db commit 7e62529

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/runtests.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -563,21 +563,21 @@ StructTypes.StructType(::Type{C2}) = StructTypes.Mutable()
563563
end
564564
end
565565

566+
struct MyStruct1
567+
val::Int
568+
end
569+
StructTypes.@Struct MyStruct1
570+
StructTypes.@NullType struct MyStruct2
571+
val::Int
572+
end
573+
574+
StructTypes.@Mutable mutable struct MyStruct3
575+
val::Int
576+
end
577+
566578
@testset "Macros" begin
567-
struct MyStruct1
568-
val::Int
569-
end
570-
StructTypes.@Struct MyStruct1
571579
@test StructTypes.StructType(MyStruct1) isa StructTypes.Struct
572-
573-
StructTypes.@NullType struct MyStruct2
574-
val::Int
575-
end
576580
@test StructTypes.StructType(MyStruct2) isa StructTypes.NullType
577-
578-
StructTypes.@Mutable mutable struct MyStruct3
579-
val::Int
580-
end
581581
@test StructTypes.StructType(MyStruct3) isa StructTypes.Mutable
582582

583583
# Test an expression that is not a struct def

0 commit comments

Comments
 (0)