Skip to content

Instantly share code, notes, and snippets.

@tyru
Created August 2, 2014 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyru/91840264b34c2943fd17 to your computer and use it in GitHub Desktop.
Save tyru/91840264b34c2943fd17 to your computer and use it in GitHub Desktop.
$ spec.bat /p ..\vimproc
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\bitwise.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\date_time.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\math.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\option_parser.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\prelude.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\process.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\process_manager.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\random.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\data\base64.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\data\dict.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\data\lazy_list.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\data\list.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\data\ordered_set.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\data\string.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\database\sqlite.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\interpreter\brainf__k.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\locale\message.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\random\xor128.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\text\csv.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\text\lexer.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\text\ltsv.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\vim\compat.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\vim\message.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\vim\search.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\web\http.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\web\json.vim
Testing... C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.
vim\spec\web\uri.vim
C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.vim
C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.vim
C:\Users\takuya\Documents\GitHub\dotfiles\dotfiles\.vim\bundle\vital.vim
[.] Bitwise.invert()
[.] Bitwise.or()
[.] Bitwise.compare()
[.] Bitwise.rshift()
[.] Bitwise.lshift()
[.] Bitwise.and()
[.] Bitwise.xor()
[.] DateTime.TimeDelta
[.] DateTime.DateTime.from_julian_day()
[.] DateTime.DateTime.from_format()
[.] Math.modulo()
[.] Math.fib()
[.] parse() in OptionParser object
[.] on() funcref in OptionParser object
[.] complete() funcref in OptionParser object
[.] OptionParser.new()
[.] help() funcref in OptionParser object
[.] Prelude.truncate_smart()
[.] Prelude.is_list()
[.] Prelude.truncate()
[.] Prelude.is_numeric()
[.] Prelude.is_number()
[.] Prelude.is_mac()
[.] Prelude.strwidthpart_reverse()
[.] Prelude.is_dict()
[.] Prelude.is_float()
[.] Prelude.is_windows()
[.] Prelude.strwidthpart()
[.] Prelude.is_funcref()
[.] Prelude.truncate_skipping()
[.] Prelude.is_string()
[.] Prelude.is_cygwin()
[.] Process.system()
[.] ProcessManager.is_available()
[.] Random.bool()
[.] Random.range()
[.] Random.shuffle()
[.] Random.generate_canonical()
[.] Random.sample()
[.] Random.next()
[.] Data.Base64.encode()
[.] Data.Base64.encodebin()
[.] Data.Base64.decode()
[.] Data.Dict.omit()
[.] Data.Dict.swap()
[.] Data.Dict.max_by()
[.] Data.Dict.make_index()
[.] Data.Dict.foldl()
[.] Data.Dict.min_by()
[.] Data.Dict.foldr()
[.] Data.Dict.clear()
[.] Data.Dict.pick()
[.] Data.Dict.make()
[.] Data.LazyList.iterate()
[.] Data.LazyList.file_readlines()
[.] Data.LazyList.from_list()
[.] Data.List.flatten()
[.] Data.List.push()
[.] Data.List.has_common_items()
[.] Data.List.span()
[.] Data.List.unshift()
[.] Data.List.uniq_by()
[.] Data.List.shift()
[.] Data.List.break()
[.] Data.List.min_by()
[.] Data.List.foldr()
[.] Data.List.conj()
[.] Data.List.with_index()
[.] Data.List.max_by()
[.] Data.List.zip()
[.] Data.List.pop()
[.] Data.List.foldl1()
[.] Data.List.partition()
[.] Data.List.any()
[.] Data.List.take_while()
[.] Data.List.map_accum()
[.] Data.List.uniq()
[.] Data.List.all()
[.] Data.List.cons()
[.] Data.List.and()
[.] Data.List.foldl()
[.] Data.List.clear()
[.] Data.List.foldr1()
[.] Data.OrderedSet.push()
[.] Data.OrderedSet.append()
[.] Data.OrderedSet.clear()
[.] Data.OrderedSet.prepend()
[.] Data.OrderedSet.remove()
[.] Data.OrderedSet.unshift()
[.] Fn_identifier
[.] Data.OrderedSet.has()
[.] Data.OrderedSet.has_id()
[.] Data.OrderedSet.empty()
[.] Data.String.replace()
[.] Data.String.scan()
[.] Data.String.dstring()
[.] Data.String.lines()
[.] Data.String.wrap()
[.] Data.String.pad_both_sides()
[.] Data.String.justify_equal_spacing()
[.] Data.String.diffidx()
[.] Data.String.pad_left()
[.] Data.String.pad_between_letters()
[.] Data.String.pad_right()
[.] Data.String.strchars()
[.] Data.String.replace_first()
[.] Data.String.nsplit()
[.] Data.String.split_leftright()
[.] Data.String.substitute_last()
[.] Data.String.contains_multibyte()
[.] Data.String.split3()
[.] Data.String.common_head()
[.] Data.String.reverse()
[.] Data.String.levenshtein_distance()
[.] Database.is_available()
[.] Brainf__k.run_vim_parse_execute()
[.] Locale.Message.new()
[.] Locale.Message.get_lang()
[.] Locale.Message.Message._()
[.] Locale.Message.Message.missing()
[.] Locale.Message.Message.get()
[.] Locale.Message.Message.load()
[.] Random.Xor128.srand()
[.] Random.Xor128.rand()
[.] Text.CSV.parse()
[F] Text.CSV.parse_record()
[F] Text.CSV.dump()
[F] Text.CSV.dump_file()
[.] Text.CSV.parse_file()
Failure
Text.CSV.parse_record()
- It parses an CSV file : expect_record ==# g:CSV.parse_record(csv_record)
- It throws an exception when invalid data was passed : [0, 'g:CSV.parse_rec
ord(''foo,bar'')'][0]
Text.CSV.dump()
- It converts a list objects to a CSV string : join(readfile(g:sample_file),
"\n") ==# g:CSV.dump(g:expect_data)
- It converts an object to a CSV string : readfile(g:sample_file)[0] ==# g:C
SV.dump(g:expect_data[0])
Text.CSV.dump_file()
- It dumps the data to a file : [0, 'Vim(return):E715: Dictionary required']
[0]
- It can append the data to a file : [0, 'Vim(return):E712: Argument of map(
) must be a List or Dictionary'][0]
[.] Text.Lexer.lexer()
[.] Text.Lexer.simple_parser()
[.] Text.LTSV.parse_file()
[.] Text.LTSV.parse_record()
[.] Text.LTSV.dump()
[.] Text.LTSV.parse()
[.] Text.LTSV.dump_file()
[.] Vim.Compat.has_version()
[.] Vim.Compat.shiftwidth()
[.] Vim.Message.error()
[.] Vim.Search.lines()
[.] Vim.Search.finddef()
[.] Web.Http.decodeURI()
[.] Web.Http.encodeURI()
[.] Web.JSON.constants
[.] Web.JSON.encode()
[F] Web.JSON.decode()
Failure
Web.JSON.decode()
- It decodes special tokens (true/false/null) : g:J.true == g:J.decode('true
', {'use_token': 1})
- It decodes special tokens (true/false/null) : g:J.false == g:J.decode('fal
se', {'use_token': 1})
- It decodes special tokens (true/false/null) : g:J.null == g:J.decode('null
', {'use_token': 1})
[.] Web.URI.new('http://d.hatena.ne.jp/tyru/20100619/git_push_vim_plugins_to_git
hub#c')
[.] Web.URI.new('http://twitter.com/tyru')
[.] URI.is_uri({uri})
FAILURE!
149 tests. Failure: 4 tests, 9 assertions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment