@@ -42,20 +42,20 @@ main = do
4242 assertEquals Nothing $ DV .byteLength <$> DV .slice 0 200 ab4
4343 assertEquals (Just 2 ) $ DV .byteLength <$> DV .slice 0 2 ab4
4444 assertEquals (Just 2 ) $ DV .byteLength <$> DV .slice 2 2 ab4
45- assertEffEquals 4 $ pure <<< AB .byteLength =<< AB .fromArray [1.0 , 2.0 , 3.0 , 4.0 ]
46- assertEffEquals 8 $ pure <<< AB .byteLength =<< AB .fromString " hola"
45+ assertEquals 4 $ AB .byteLength $ AB .fromArray [1.0 , 2.0 , 3.0 , 4.0 ]
46+ assertEquals 8 $ AB .byteLength $ AB .fromString " hola"
4747 assertEquals 8 $ AB .byteLength $ DV .buffer $ DV .whole ab8
4848 assertEquals 8 $ AB .byteLength $ DV .buffer $ TA .dataView $ TA .asInt8Array $ DV .whole ab8
4949
5050 assertEquals (Just 8 ) $ DV .byteLength <$> DV .slice 0 8 ab8
5151 assertEquals true $ isNothing $ DV .slice 0 40 ab8
5252
53- fourElementInt8Array <- pure <<< TA .asInt8Array <<< DV .whole =<< AB .fromArray [1.0 , 2.0 , 3.0 , 4.0 ]
53+ fourElementInt8Array <- pure <<< TA .asInt8Array <<< DV .whole $ AB .fromArray [1.0 , 2.0 , 3.0 , 4.0 ]
5454 assertEffEquals (Just 2.0 ) $ TA .at fourElementInt8Array 1
5555 assertEffEquals Nothing $ TA .at fourElementInt8Array 4
5656 assertEffEquals Nothing $ TA .at fourElementInt8Array (-1 )
5757
58- assertEffEquals [1.0 , 2.0 , 3.0 ] $ TA .toArray <<< TA .asInt8Array <<< DV .whole =<< AB .fromArray [1.0 , 2.0 , 3.0 ]
58+ assertEffEquals [1.0 , 2.0 , 3.0 ] $ TA .toArray <<< TA .asInt8Array <<< DV .whole $ AB .fromArray [1.0 , 2.0 , 3.0 ]
5959
6060 twoElementDataView <- do
6161 ab' <- AB .create 2
0 commit comments