Mercurial > vim
comparison src/testdir/test77.in @ 2732:afb476746692 v7.3.143
Add missing files for patch 7.3.143.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 22 Mar 2011 20:52:37 +0100 |
parents | |
children | 53786601213c |
comparison
equal
deleted
inserted
replaced
2731:0c5490025387 | 2732:afb476746692 |
---|---|
1 Inserts 2 million lines with consecutive integers starting from 1 | |
2 (essentially, the output of GNU's seq 1 2000000), writes them to Xtest | |
3 and writes its cksum to test.out. | |
4 | |
5 We need 2 million lines to trigger a call to mf_hash_grow(). If it would mess | |
6 up the lines the checksum would differ. | |
7 | |
8 cksum is part of POSIX and so should be available on most Unixes. | |
9 If it isn't available then the test will be skipped. | |
10 | |
11 STARTTEST | |
12 :so small.vim | |
13 :if !executable("cksum") | |
14 : e! test.ok | |
15 : w! test.out | |
16 : qa! | |
17 :endif | |
18 :set fileformat=unix undolevels=-1 | |
19 ggdG | |
20 :let i = 1 | |
21 :while i <= 2000000 | call append(i, range(i, i + 99)) | let i += 100 | endwhile | |
22 ggdd | |
23 :w! Xtest | |
24 :!cksum Xtest > test.out | |
25 :qa! | |
26 ENDTEST | |
27 |