Bram Moolenaar | 278e838 | 2020-04-13 18:25:33 +0200 | [diff] [blame] | 1 | " Test :version Ex command |
| 2 | |
| 3 | func Test_version() |
| 4 | " version should always return the same string. |
| 5 | let v1 = execute('version') |
| 6 | let v2 = execute('version') |
| 7 | call assert_equal(v1, v2) |
| 8 | |
| 9 | call assert_match("^\n\nVIM - Vi IMproved .*", v1) |
| 10 | endfunc |
Bram Moolenaar | 6d91bcb | 2020-08-12 18:50:36 +0200 | [diff] [blame] | 11 | |
Bram Moolenaar | 3b67804 | 2021-02-11 19:08:05 +0100 | [diff] [blame] | 12 | func Test_version_redirect() |
| 13 | CheckNotGui |
| 14 | CheckCanRunGui |
| 15 | CheckUnix |
| 16 | |
| 17 | call RunVim([], [], '--clean -g --version >Xversion 2>&1') |
| 18 | call assert_match('Features included', readfile('Xversion')->join()) |
| 19 | |
| 20 | call delete('Xversion') |
| 21 | endfunc |
| 22 | |
Bram Moolenaar | 6d91bcb | 2020-08-12 18:50:36 +0200 | [diff] [blame] | 23 | " vim: shiftwidth=2 sts=2 expandtab |