Phạm Bình An | 13bea58 | 2025-05-12 20:39:24 +0200 | [diff] [blame^] | 1 | " Test for the new-tutor plugin |
2 | |||||
3 | func SetUp() | ||||
4 | set nocompatible | ||||
5 | runtime plugin/tutor.vim | ||||
6 | endfunc | ||||
7 | |||||
8 | func Test_auto_enable_interactive() | ||||
9 | Tutor | ||||
10 | call assert_equal('nofile', &buftype) | ||||
11 | call assert_match('tutor#EnableInteractive', b:undo_ftplugin) | ||||
12 | |||||
13 | edit Xtutor/Xtest.tutor | ||||
14 | call assert_true(empty(&buftype)) | ||||
15 | call assert_match('tutor#EnableInteractive', b:undo_ftplugin) | ||||
16 | endfunc |