Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added some unit tests for isinstance?

  • Loading branch information...
commit ceba84d4a6799c9078c8b412110762027ce96bb7 1 parent 438b15e
Adam Feuer authored April 07, 2012

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  tests/instance-tests.clj
9  tests/instance-tests.clj
... ...
@@ -0,0 +1,9 @@
  1
+(ns tests.instance-tests
  2
+    (:require [tests.assertions :as assertions])
  3
+    (:require [tests.utils :only [deftest]]))
  4
+
  5
+(deftest instance-tests
  6
+    (assertions/assert-true (instance? (py/type 5) 3))
  7
+    (assertions/assert-true (instance? (py/type "") "foo"))
  8
+    (assertions/assert-true (instance? (py/type 1.0) 2.718)))
  9
+

0 notes on commit ceba84d

Please sign in to comment.
Something went wrong with that request. Please try again.