aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/057_sort_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-01-20 23:46:31 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-01-21 01:34:36 -0500
commit9eb6a4456491c1b4dec8c1ff07c4b33220c3bab2 (patch)
treee357cc3ea0bf85d9977f6f43ee8e77a75790480f /test/functional/legacy/057_sort_spec.lua
parent03d8adda8e5101538893d8b7ddf547273bb4a26e (diff)
parentf82e982bda49d15f19dbd72531a6c1125d863486 (diff)
downloadrneovim-9eb6a4456491c1b4dec8c1ff07c4b33220c3bab2.tar.gz
rneovim-9eb6a4456491c1b4dec8c1ff07c4b33220c3bab2.tar.bz2
rneovim-9eb6a4456491c1b4dec8c1ff07c4b33220c3bab2.zip
Merge #3916 "Add support for binary numbers".
Diffstat (limited to 'test/functional/legacy/057_sort_spec.lua')
-rw-r--r--test/functional/legacy/057_sort_spec.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/functional/legacy/057_sort_spec.lua b/test/functional/legacy/057_sort_spec.lua
index 585b391198..65defbae96 100644
--- a/test/functional/legacy/057_sort_spec.lua
+++ b/test/functional/legacy/057_sort_spec.lua
@@ -600,4 +600,39 @@ describe(':sort', function()
eq('Vim(sort):E474: Invalid argument', eval('tmpvar'))
expect(text)
end)
+
+ it('binary', function()
+ insert([[
+ 0b111000
+ 0b101100
+ 0b101001
+ 0b101001
+ 0b101000
+ 0b000000
+ 0b001000
+ 0b010000
+ 0b101000
+ 0b100000
+ 0b101010
+ 0b100010
+ 0b100100
+ 0b100010]])
+ execute([[sort b]])
+ expect([[
+ 0b000000
+ 0b001000
+ 0b010000
+ 0b100000
+ 0b100010
+ 0b100010
+ 0b100100
+ 0b101000
+ 0b101000
+ 0b101001
+ 0b101001
+ 0b101010
+ 0b101100
+ 0b111000]])
+ end)
+
end)