blob: 61cea3faff2c282ee6614255ea80c2c3f92cbf99 [file] [log] [blame]
Phạm Bình An13bea582025-05-12 20:39:24 +02001" Test for the new-tutor plugin
2
3func SetUp()
4 set nocompatible
5 runtime plugin/tutor.vim
6endfunc
7
8func 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)
16endfunc