1""" 2File: test_sanity.py 3Author: Dilawar Singh 4Email: dilawars@ncbs.res.in 5Description: 6 User can create multiple simptr and assign one of them as current simptr. 7""" 8# todo: Test a full simulation with configuration changes. 9 10import smoldyn 11 12print(f'Using smoldyn from {smoldyn.__file__}') 13 14def test_newcursim(): 15 print("test_newcursim") 16 s = smoldyn.Simulation(low=(0,0), high=(1,1)) 17 cs = s.simptr 18 assert cs != None 19 print(cs) 20 21def test_get_err(): 22 print('Testing test_get_err') 23 s = smoldyn.Simulation(low=(0,0), high=(1,1)) 24 a = smoldyn.getError() 25 print(a) 26 27def main(): 28 test_newcursim() 29 test_get_err() 30 31if __name__ == "__main__": 32 main() 33