Skip to content

Commit

Permalink
Fixed bad test and field reference
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Dec 10, 2023
1 parent af21033 commit 898a35b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Base.:/(s::Real, c::CoordinateVector) = SVector(s ./ c.data)
Base.:(//)(c::CoordinateVector, s::Real) = SVector(c.data .// s)
Base.:(//)(c::CoordinateVector, s::Real) = SVector(s .// c.data)
Base.:\(s::Real, c::CoordinateVector) = SVector(s .\ c.data)
Base.:\(c::CoordinateVector, s::Real) = SVector(c.vector .\ s)
Base.:\(c::CoordinateVector, s::Real) = SVector(c.data .\ s)

# Dot product as multiplication
function Base.:*(c1::CoordinateVector, c2::CoordinateVector)
Expand Down
2 changes: 1 addition & 1 deletion test/coordinates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@test 2 \ c1 === SVector(1/2, 2/2, 3/2)
@test c1 \ 2 === SVector(2/1, 2/2, 2/3)
@test c1 // 2 === SVector(1//2, 2//2, 3//2)
@test c1 // 2 === SVector(2//1, 2//2, 2//3)
@test 2 // c1 === SVector(2//1, 2//2, 2//3)
end

@testset "Shift vectors" begin
Expand Down

0 comments on commit 898a35b

Please sign in to comment.