diff options
author | Ken Barber <ken@bob.sh> | 2011-07-29 20:57:10 +0100 |
---|---|---|
committer | Ken Barber <ken@bob.sh> | 2011-07-29 20:57:10 +0100 |
commit | 6827ad804f2eb44839f9a3e99f40f1bb2284f491 (patch) | |
tree | 8fe4edeb2dc4090ea05704844ed5287d8c853e69 /spec/unit/parser/functions/abs_spec.rb | |
parent | aa023c1e5d23b2a5a66dbe9a36d0e8765a8d8cff (diff) |
(#1) provide some more detailed tests for a number of functions.
Diffstat (limited to 'spec/unit/parser/functions/abs_spec.rb')
-rwxr-xr-x | spec/unit/parser/functions/abs_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/unit/parser/functions/abs_spec.rb b/spec/unit/parser/functions/abs_spec.rb index 6bf0b41..65ba2e8 100755 --- a/spec/unit/parser/functions/abs_spec.rb +++ b/spec/unit/parser/functions/abs_spec.rb @@ -19,8 +19,13 @@ describe "the abs function" do end it "should convert a negative number into a positive" do - result = @scope.function_abs([-34]) + result = @scope.function_abs(["-34"]) result.should(eq(34)) end + it "should do nothing with a positive number" do + result = @scope.function_abs(["5678"]) + result.should(eq(5678)) + end + end |