Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
James Brusey first version
Latest commit 5ba1232 Oct 15, 2024 History
0 contributors

Users who have contributed to this file

import unittest
from veepi import (psa)
class VeePiTest(unittest.TestCase):
def testPsa1(self):
p = psa((1,0), 1)
self.assertEqual(p[0, 0], 0.8)
self.assertEqual(p[0, 1], 0.2)
def testPsa2(self):
p = psa((1,0), 0)
self.assertEqual(p[0, 0], 0.1)
self.assertEqual(p[0, 1], 0.8)
self.assertEqual(p[0, 2], 0.1)
def testPsa3(self):
p = psa((3,0), 0)
self.assertEqual(p[0,4], 1)
if __name__ == "__main__":
unittest.main()