Skip to content

Commit

Permalink
test(lib): Fix GHC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie committed Feb 24, 2024
1 parent 3b75c8e commit 3d098e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Text/GLTF/Loader/Internal/BufferAccessorSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ spec = do
mkCodecAccessorColors
]
}
buffers' = [ bufferIndices32, bufferPositions]
buffersWithIndices32 = [ bufferIndices32, bufferPositions]

vertexIndices gltf' buffers' accessorIdIndices32 `shouldBe` [1, 2, 3, 4]
vertexIndices gltf' buffersWithIndices32 accessorIdIndices32 `shouldBe` [1, 2, 3, 4]

it "Returns empty when accessor not defined" $ do
let gltf' = gltf { GlTF.accessors = Nothing }
Expand Down Expand Up @@ -160,7 +160,7 @@ spec = do
vertexPositions gltf' buffers' accessorIdPositions `shouldBe` []

buffers' :: Vector GltfBuffer
buffers' = [bufferIndices, bufferPositions, bufferIndices32]
buffers' = [bufferIndices, bufferPositions]

accessorIdIndices :: Accessor.AccessorIx
accessorIdIndices = Accessor.AccessorIx 0
Expand Down

0 comments on commit 3d098e1

Please sign in to comment.