Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aplavin committed Dec 18, 2024
1 parent b589983 commit 847847f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/basic_integrations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ end
using StructArrays
using StructArrays.Tables

# these setproperties() are upstreamed to StructArrays:
s = StructArray(a=[1, 2, 3])
@test setproperties(s, a=10:12)::StructArray == StructArray(a=10:12)
@test_throws ArgumentError setproperties(s, b=10:12)
@test @modify(c -> c .+ 1, s |> Properties()) == StructArray(a=[2, 3, 4])

s = StructArray(([1, 2, 3],))
@test setproperties(s, (10:12,))::StructArray == StructArray((10:12,))
@test @modify(c -> c .+ 1, s |> Properties()) == StructArray(([2, 3, 4],))
Expand Down

0 comments on commit 847847f

Please sign in to comment.