aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/number.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec/number.js b/spec/spec/number.js
index 62e51a2..3d1876c 100644
--- a/spec/spec/number.js
+++ b/spec/spec/number.js
@@ -23,6 +23,11 @@ describe('Number', function() {
expect(number.value).toBe(0.99)
expect(number.unit).toBe('%')
})
+ it('parses a negative percent value', function() {
+ number = new SVG.Number('-89%')
+ expect(number.value).toBe(-0.89)
+ expect(number.unit).toBe('%')
+ })
})