annotate src/testdir/test77a.in @ 22734:02b782e80ee4 v8.2.1915

patch 8.2.1915: Vim9: error for wrong number of arguments is not useful Commit: https://github.com/vim/vim/commit/6cf7e3b026727818cd137e2b317b1f6d7c072703 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 28 14:31:16 2020 +0100 patch 8.2.1915: Vim9: error for wrong number of arguments is not useful Problem: Vim9: error for wrong number of arguments is not useful. Solution: Mention whatever we have for the name. (closes https://github.com/vim/vim/issues/7208)
author Bram Moolenaar <Bram@vim.org>
date Wed, 28 Oct 2020 14:45:04 +0100
parents e705ea6e855b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5704
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Inserts 2 million lines with consecutive integers starting from 1
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 (essentially, the output of GNU's seq 1 2000000), writes them to Xtest
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 and writes its cksum to test.out.
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 We need 2 million lines to trigger a call to mf_hash_grow(). If it would mess
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 up the lines the checksum would differ.
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 cksum is part of POSIX and so should be available on most Unixes.
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 If it isn't available then the test will be skipped.
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 VMS does not have CKSUM but has a built in CHECKSUM - it should be used
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 STARTTEST
21797
e705ea6e855b patch 8.2.1448: test 77a for VMS depends on small.vim which does not exist
Bram Moolenaar <Bram@vim.org>
parents: 5704
diff changeset
13 :silent! while 0
e705ea6e855b patch 8.2.1448: test 77a for VMS depends on small.vim which does not exist
Bram Moolenaar <Bram@vim.org>
parents: 5704
diff changeset
14 : e! test.ok
e705ea6e855b patch 8.2.1448: test 77a for VMS depends on small.vim which does not exist
Bram Moolenaar <Bram@vim.org>
parents: 5704
diff changeset
15 : w! test.out
e705ea6e855b patch 8.2.1448: test 77a for VMS depends on small.vim which does not exist
Bram Moolenaar <Bram@vim.org>
parents: 5704
diff changeset
16 : qa!
e705ea6e855b patch 8.2.1448: test 77a for VMS depends on small.vim which does not exist
Bram Moolenaar <Bram@vim.org>
parents: 5704
diff changeset
17 :silent! endwhile
5704
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 :if !has("vms")
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 : e! test.ok
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 : w! test.out
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 : qa!
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :endif
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :set fileformat=unix undolevels=-1
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 ggdG
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :let i = 1
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :while i <= 2000000 | call append(i, range(i, i + 99)) | let i += 100 | endwhile
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 ggdd
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 :w! Xtest.
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :r !@test77a.com Xtest.
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 :s/\s/ /g
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :set fileformat&
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 :.w! test.out
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :qa!
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 ENDTEST
47a673b20e49 updated for version 7.4.197
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35