@@ -157,33 +157,5 @@ function TestExternalFile_testMD5Hash(testCase)
157157 uuid = dj .lib .DataHash(packed_cell{1 }, ' bin' , ' hex' , ' MD5' );
158158 testCase .verifyEqual(uuid , ' 1d751e2e1e74faf84ab485fde8ef72be' );
159159 end
160- function TestExternalFile_test32BitRead(testCase )
161- st = dbstack ;
162- disp([' ---------------' st(1 ).name ' ---------------' ]);
163- value = [' 6D596D005302000000010000000100000004000000686974730073696465730074' ...
164- ' 61736B73007374616765004D00000041020000000100000007000000060000000000000' ...
165- ' 0000000000000F8FF000000000000F03F000000000000F03F0000000000000000000000' ...
166- ' 000000F03F0000000000000000000000000000F8FF23000000410200000001000000070' ...
167- ' 0000004000000000000006C006C006C006C00720072006C002300000041020000000100' ...
168- ' 00000700000004000000000000006400640064006400640064006400250000004102000' ...
169- ' 0000100000008000000040000000000000053007400610067006500200031003000' ];
170- hexstring = value ' ;
171- reshapedString = reshape(hexstring ,2 ,length(value )/2 );
172- hexMtx = reshapedString .' ;
173- decMtx = hex2dec(hexMtx );
174- packed = uint8(decMtx );
175-
176- data = struct ;
177- data.stage = ' Stage 10' ;
178- data.tasks = ' ddddddd' ;
179- data.sides = ' llllrrl' ;
180- data.hits = [NaN ,1 ,1 ,0 ,1 ,0 ,NaN ];
181-
182- dj .config(' use_32bit_dims' , true );
183- unpacked = mym(' deserialize' , packed );
184- dj .config(' use_32bit_dims' , false );
185-
186- testCase .verifyEqual(unpacked , data );
187- end
188160 end
189161end
0 commit comments