import numpy
from trussme import truss
import unittest


class TestSequenceFunctions(unittest.TestCase):

    def setUp(self):
        self.T = truss.Truss()

    def test_joints(self):
        self.T.add_support(numpy.array([-5.0, 0.0, 0.0]), d=2)
        self.T.add_joint(  numpy.array([-2.0, 0.0, 0.0]), d=2)
        self.T.add_support(numpy.array([ 1.0, 0.0, 0.0]), d=2)
        self.T.joints[2].roller()
        self.T.add_joint(  numpy.array([ 3.0, 0.0, 0.0]), d=2)
        self.T.add_support(numpy.array([ 5.0, 0.0, 0.0]), d=2)
        self.T.add_support(numpy.array([ 1.0, 1.0, 0.0]), d=2)

        self.T.add_member(0, 1)
        self.T.add_member(1, 2)
        self.T.add_member(2, 3)
        self.T.add_member(3, 4)
        self.T.add_member(0, 5)
        self.T.add_member(1, 5)
        self.T.add_member(2, 5)
        self.T.add_member(3, 5)
        self.T.add_member(4, 5)

        # self.T.print_report()

if __name__ == "__main__":
    unittest.main()

@@ -32,16 +32,46 @@
 t truss%0A
+from trussme import old_truss%0A
 import u
@@ -180,16 +180,53 @@
 .Truss()
+%0A        self.Tr = old_truss.Truss(6)
 %0A%0A    de
@@ -946,16 +946,80 @@
 er(4, 5)
+%0A        %0A        self.T.fos_eval()%0A        self.T2.truss_eval()
 %0A%0A      

Update test_simple.py