Mercurial > vim
comparison src/testdir/test_vim9_import.vim @ 29836:a8831ab29aee v9.0.0257
patch 9.0.0257: "->" in ":scriptnames" output not tested yet
Commit: https://github.com/vim/vim/commit/7ea9fcb48dcdb07c9eb960ace3cc625fe7c685b2
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 24 17:46:12 2022 +0100
patch 9.0.0257: "->" in ":scriptnames" output not tested yet
Problem: "->" in ":scriptnames" output not tested yet.
Solution: Add a check.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Aug 2022 19:00:02 +0200 |
parents | 6b7020f3d856 |
children | 8dca33bca038 |
comparison
equal
deleted
inserted
replaced
29835:df33a30395b3 | 29836:a8831ab29aee |
---|---|
2940 var infoTo = getscriptinfo()->filter((_, v) => v.name =~ 'Xto/autoload/bar') | 2940 var infoTo = getscriptinfo()->filter((_, v) => v.name =~ 'Xto/autoload/bar') |
2941 var infoFrom = getscriptinfo()->filter((_, v) => v.name =~ 'Xfrom/autoload/bar') | 2941 var infoFrom = getscriptinfo()->filter((_, v) => v.name =~ 'Xfrom/autoload/bar') |
2942 assert_equal(1, len(infoTo)) | 2942 assert_equal(1, len(infoTo)) |
2943 assert_equal(1, len(infoFrom)) | 2943 assert_equal(1, len(infoFrom)) |
2944 assert_equal(infoTo[0].sid, infoFrom[0].sourced) | 2944 assert_equal(infoTo[0].sid, infoFrom[0].sourced) |
2945 var output: string | |
2946 redir => output | |
2947 scriptnames | |
2948 redir END | |
2949 assert_match(infoFrom[0].sid .. '->' .. infoFrom[0].sourced .. '.*Xfrom', output) | |
2945 | 2950 |
2946 unlet g:resultFunc | 2951 unlet g:resultFunc |
2947 unlet g:resultValue | 2952 unlet g:resultValue |
2948 &rtp = save_rtp | 2953 &rtp = save_rtp |
2949 delete('Xto', 'rf') | 2954 delete('Xto', 'rf') |