Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenovic committed Oct 4, 2016
1 parent daed509 commit 829ce73
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ clifford
numerical clifford algebra module for python

###[Docs](http://clifford.readthedocs.org/en/latest/)


[![Build Status](https://travis-ci.org/arsenovic/clifford.svg?branch=master)](https://travis-ci.org/arsenovic/clifford)

[![Documentation Status](https://readthedocs.org/projects/clifford/badge/?version=latest)](http://clifford.readthedocs.io/en/latest/?badge=latest)

14 changes: 7 additions & 7 deletions test_clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def setUp(self):

def test_inverse(self):
for layout, blades in self.algebras:
a = 1. + blades['e0']
a = 1. + blades['e1']
self.assertRaises(ValueError, lambda x: 1/x, a)
for i in range(10):
a = randomMV(layout, grades=[0, 1])
Expand All @@ -36,18 +36,18 @@ def test_inverse(self):
def test_exp(self):

layout, blades = self.algebras[0]
R = exp(blades['e01'])
e0 = blades['e0']
R*e0*~R
R = exp(blades['e12'])
e1 = blades['e1']
R*e1*~R

def test_add_float64(self):

layout, blades = self.algebras[0]
e0 = blades['e0']
e1 = blades['e1']


float64(1)+e0
self.assertEqual(1+e0,float64(1)+e0)
float64(1)+e1
self.assertEqual(1+e1,float64(1)+e1)



Expand Down

0 comments on commit 829ce73

Please sign in to comment.