From 5613d7f9b489723e8f3dfc954f127d962eb58be2 Mon Sep 17 00:00:00 2001 From: itchyny Date: Thu, 24 Mar 2016 23:26:56 +0900 Subject: [PATCH] improve tests for s:uniq --- test/uniq.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/uniq.vim b/test/uniq.vim index 862200b..67f0d23 100644 --- a/test/uniq.vim +++ b/test/uniq.vim @@ -29,10 +29,14 @@ function! s:suite.three_duplicated() call s:assert.equals(s:uniq(['foo', 'bar', 'foo']), ['foo', 'bar', 'foo']) endfunction +function! s:suite.many1() + call s:assert.equals(s:uniq(['foo', 'foo', 'bar', 'baz', 'baz', 'qux', 'foo']), ['foo', 'bar', 'baz', 'qux', 'foo']) +endfunction + function! s:suite.many2() call s:assert.equals(s:uniq(['foo', 'foo', 'foo', 'foo', 'bar', 'bar', 'bar']), ['foo', 'bar']) endfunction -function! s:suite.many() - call s:assert.equals(s:uniq(['foo', 'foo', 'bar', 'baz', 'baz', 'qux', 'foo']), ['foo', 'bar', 'baz', 'qux', 'foo']) +function! s:suite.many3() + call s:assert.equals(s:uniq(['foo', 'foo', 'bar', 'bar', 'bar', 'foo', 'foo', 'foo']), ['foo', 'bar', 'foo']) endfunction