Permalink
Browse files

Add a test for a <double> encoding issue: Use fiveam for this.

  • Loading branch information...
1 parent af41687 commit ac8d84b75ccd15da903ae2d05f4fd40b6adeb00c @antifuchs committed May 8, 2009
Showing with 14 additions and 1 deletion.
  1. +5 −1 cxml-rpc.asd
  2. +9 −0 tests.lisp
View
@@ -12,4 +12,8 @@
(:file "encoding" :depends-on ("xml-rpc-types"))
(:file "decoding" :depends-on ("xml-rpc-types"))
(:file "client" :depends-on ("encoding" "decoding"))
- (:file "server" :depends-on ("encoding" "decoding"))))
+ (:file "server" :depends-on ("encoding" "decoding"))))
+
+(defsystem #:cxml-rpc-tests
+ :depends-on (#:cxml #:fiveam)
+ :components ((:file "tests")))
View
@@ -0,0 +1,9 @@
+(cl:in-package :cxml-rpc)
+
+(fiveam:def-suite :cxml-rpc)
+(fiveam:in-suite :cxml-rpc)
+
+(fiveam:test decode-response/double
+ (fiveam:is
+ (eql 1.06
+ (decode-response "<methodResponse><params><param><value><double>1.06</double></value></param></params></methodResponse>"))))

0 comments on commit ac8d84b

Please sign in to comment.