From ed13dda6a61d95d14de0426275fa8e61ad4aac80 Mon Sep 17 00:00:00 2001 From: itchyny Date: Thu, 24 Mar 2016 21:39:30 +0900 Subject: [PATCH] the list is no more sorted in s:uniq, it only removes the adjacent elements --- test/uniq.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/uniq.vim b/test/uniq.vim index a0ebbf2..1c629f5 100644 --- a/test/uniq.vim +++ b/test/uniq.vim @@ -14,11 +14,11 @@ function! s:suite.one() endfunction function! s:suite.two() - call s:assert.equals(s:uniq(['foo', 'bar']), ['bar', 'foo']) + call s:assert.equals(s:uniq(['foo', 'bar']), ['foo', 'bar']) endfunction function! s:suite.three() - call s:assert.equals(s:uniq(['foo', 'bar', 'baz']), ['bar', 'baz', 'foo']) + call s:assert.equals(s:uniq(['foo', 'bar', 'baz']), ['foo', 'bar', 'baz']) endfunction function! s:suite.two_duplicated() @@ -26,9 +26,9 @@ function! s:suite.two_duplicated() endfunction function! s:suite.three_duplicated() - call s:assert.equals(s:uniq(['foo', 'bar', 'foo']), ['bar', 'foo']) + call s:assert.equals(s:uniq(['foo', 'bar', 'foo']), ['foo', 'bar', 'foo']) endfunction function! s:suite.many() - call s:assert.equals(s:uniq(['foo', 'bar', 'foo', 'baz', 'baz', 'qux', 'foo']), ['bar', 'baz', 'foo', 'qux']) + call s:assert.equals(s:uniq(['foo', 'foo', 'bar', 'baz', 'baz', 'qux', 'foo']), ['foo', 'bar', 'baz', 'qux', 'foo']) endfunction