diff options
author | Ken Barber <ken@bob.sh> | 2011-07-29 00:10:31 +0100 |
---|---|---|
committer | Ken Barber <ken@bob.sh> | 2011-07-29 00:10:31 +0100 |
commit | ce48eb6e7a76f74e1f61c76ac3b185031c40772b (patch) | |
tree | dbb7d442fe1678a7bb208b395e0acf58e7357d5a /spec/unit | |
parent | 7d6ae5d57ce45ff1293f02b90c816a7f938a3af6 (diff) |
Allow sort for strings.
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/parser/functions/sort_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/parser/functions/sort_spec.rb b/spec/unit/parser/functions/sort_spec.rb index da5db7a..fbe3073 100644 --- a/spec/unit/parser/functions/sort_spec.rb +++ b/spec/unit/parser/functions/sort_spec.rb @@ -23,4 +23,9 @@ describe "the sort function" do result.should(eq(['a','b','c'])) end + it "should sort a string" do + result = @scope.function_sort(["acb"]) + result.should(eq('abc')) + end + end |