comparison src/testdir/test_xxd.vim @ 31849:dbec60b8c253 v9.0.1257

patch 9.0.1257: code style is not check in test scripts Commit: https://github.com/vim/vim/commit/94722c510745a0cfd494c51625a514b92dd2bfb2 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 28 19:19:03 2023 +0000 patch 9.0.1257: code style is not check in test scripts Problem: Code style is not check in test scripts. Solution: Add basic code style check for test files.
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Jan 2023 20:30:04 +0100
parents bff3fa5f4c74
children 5a1113ece237
comparison
equal deleted inserted replaced
31848:b83cac410fcf 31849:dbec60b8c253
230 unsigned char varName[] = { 230 unsigned char varName[] = {
231 0x54, 0x45, 0x53, 0x54, 0x61, 0x62, 0x63, 0x64, 0x30, 0x39, 0x0a 231 0x54, 0x45, 0x53, 0x54, 0x61, 0x62, 0x63, 0x64, 0x30, 0x39, 0x0a
232 }; 232 };
233 unsigned int varName_len = 11; 233 unsigned int varName_len = 11;
234 [CODE] 234 [CODE]
235 235
236 call assert_equal(expected, getline(1,'$'), s:Mess(s:test)) 236 call assert_equal(expected, getline(1,'$'), s:Mess(s:test))
237 endfor 237 endfor
238 238
239 " using "-n name" reading from stdin 239 " using "-n name" reading from stdin
240 %d 240 %d
287 287
288 call writefile(["2: 45 45 ", "8: 46 46"], 'Xxxdin') 288 call writefile(["2: 45 45 ", "8: 46 46"], 'Xxxdin')
289 exe cmd1 289 exe cmd1
290 exe cmd2 290 exe cmd2
291 call assert_equal(['00000000: 3a 3a 45 45 3a 3a 3a 3a 46 46 ::EE::::FF'], readfile('Xxxdout')) 291 call assert_equal(['00000000: 3a 3a 45 45 3a 3a 3a 3a 46 46 ::EE::::FF'], readfile('Xxxdout'))
292 292
293 call writefile(["2: 41 41", "08: 42 42"], 'Xxxdin') 293 call writefile(["2: 41 41", "08: 42 42"], 'Xxxdin')
294 call writefile(['::::::::'], 'Xxxdfile') 294 call writefile(['::::::::'], 'Xxxdfile')
295 exe cmd1 295 exe cmd1
296 exe cmd2 296 exe cmd2
297 call assert_equal(['00000000: 3a 3a 41 41 3a 3a 3a 3a 42 42 ::AA::::BB'], readfile('Xxxdout')) 297 call assert_equal(['00000000: 3a 3a 41 41 3a 3a 3a 3a 42 42 ::AA::::BB'], readfile('Xxxdout'))
303 303
304 call writefile(["2: 45 45 ", "0a: 46 46"], 'Xxxdin') 304 call writefile(["2: 45 45 ", "0a: 46 46"], 'Xxxdin')
305 exe cmd1 305 exe cmd1
306 exe cmd2 306 exe cmd2
307 call assert_equal(['00000000: 3a 3a 45 45 3a 3a 3a 3a 42 44 46 46 ::EE::::BDFF'], readfile('Xxxdout')) 307 call assert_equal(['00000000: 3a 3a 45 45 3a 3a 3a 3a 42 44 46 46 ::EE::::BDFF'], readfile('Xxxdout'))
308 308
309 call delete('Xxxdout') 309 call delete('Xxxdout')
310 endfunc 310 endfunc
311 311
312 " Various ways with wrong arguments that trigger the usage output. 312 " Various ways with wrong arguments that trigger the usage output.
313 func Test_xxd_usage() 313 func Test_xxd_usage()