コード例 #1
0
 def test_secondorder(self):
     ctx = Context(2, 2)
     ctx.add(1)
     ctx.add(2)
     self.assertTrue(ctx.to_dimension() == (9, 1))
コード例 #2
0
 def test_fistorder(self):
     ctx = Context(1)
     ctx.add(0)
     self.assertTrue(ctx.to_dimension() == (0, 1))