From 978f0c5406fdd0b927578455e308e899a161e3e1 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sat, 31 May 2014 11:23:47 +1000 Subject: [PATCH] ECKey: adds test to ensure throws on negative D --- test/fixtures/eckey.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/fixtures/eckey.json b/test/fixtures/eckey.json index 923ed42..fff0164 100644 --- a/test/fixtures/eckey.json +++ b/test/fixtures/eckey.json @@ -67,6 +67,10 @@ ], "invalid": { "constructor": [ + { + "exception": "Private key must be greater than 0", + "D": "-1" + }, { "exception": "Private key must be greater than 0", "D": "0"