summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/flatten_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/functions/flatten_spec.rb')
-rwxr-xr-xspec/unit/parser/functions/flatten_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/parser/functions/flatten_spec.rb b/spec/unit/parser/functions/flatten_spec.rb
index 91cf4ef..7bedeb2 100755
--- a/spec/unit/parser/functions/flatten_spec.rb
+++ b/spec/unit/parser/functions/flatten_spec.rb
@@ -23,4 +23,9 @@ describe "the flatten function" do
result.should(eq(["a","b","c","d","e","f","g"]))
end
+ it "should do nothing to a structure that is already flat" do
+ result = @scope.function_flatten([["a","b","c","d"]])
+ result.should(eq(["a","b","c","d"]))
+ end
+
end