-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
raw.vim
30 lines (27 loc) · 911 Bytes
/
raw.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
" set verbose=1
const s:suite = themis#suite('raw')
const s:assert = themis#helper('assert')
const s:type = dein#types#raw#define()
const s:path = tempname()
const s:base = s:path .. '/repos/'
function! s:suite.protocol() abort
" Protocol errors
call s:assert.equals(s:type.init(
\ 'http://raw.githubusercontent.com/Shougo/'
\ .. 'shougo-s-github/master/vim/colors/candy.vim', {}),
\ {})
endfunction
function! s:suite.init() abort
call dein#begin(s:path)
call s:assert.equals(s:type.init(
\ 'https://raw.githubusercontent.com/Shougo/'
\ .. 'shougo-s-github/master/vim/colors/candy.vim',
\ #{ script_type: 'colors' }),
\ #{
\ type: 'raw',
\ name: 'candy.vim',
\ path: s:base .. 'raw.githubusercontent.com/Shougo/'
\ .. 'shougo-s-github/master/vim/colors',
\ })
call dein#end()
endfunction