1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
543 B
Plaintext

# Simple date
Given (date template):
<# DATE #>
Execute (run variable replacement):
let datestr = strftime('%Y-%m-%d')
call tmpl#ExpandTmplVars()
AssertEqual getline(1), datestr
# Year
Given (year template):
<# YEAR #>
Execute (run variable replacement):
let datestr = strftime('%Y')
call tmpl#ExpandTmplVars()
AssertEqual getline(1), datestr
# Time
Given (time template):
<# TIME #>
Execute (run variable replacement):
let datestr = strftime('%H:%M:%S')
call tmpl#ExpandTmplVars()
AssertEqual getline(1), datestr