Skip to content

Commit

Permalink
Add more cuncurrent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jan 4, 2024
1 parent 9ab1c47 commit b1a79fc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/test_concurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_gather_atoms(self):

ids = self.lmp.extract_atom("id").result()
self.assertEqual(len(ids), 256)
self.assertEqual(self.lmp.get_natoms().result(), 256)

def test_extract_fix(self):
x = self.lmp.extract_fix("2", 0, 1, 1).result()
Expand Down Expand Up @@ -92,6 +93,29 @@ def test_extract_box(self):
def test_cmdarg_options(self):
self.assertTrue(os.path.isfile(self.citation_file))

def test_version(self):
self.assertEqual(self.lmp.version.result(), 20230802)

def test_extract_global(self):
self.assertEqual(
self.lmp.extract_global(name="boxhi").result(),
[6.718384765530029, 6.718384765530029, 6.718384765530029]
)
self.assertEqual(
self.lmp.extract_global(name="boxlo").result(),
[0.0, 0.0, 0.0]
)

def test_properties(self):
self.assertEqual(self.lmp.has_exceptions.result(), True)
self.assertEqual(self.lmp.has_gzip_support.result(), True)
self.assertEqual(self.lmp.has_png_support.result(), True)
self.assertEqual(self.lmp.has_jpeg_support.result(), True)
self.assertEqual(self.lmp.has_ffmpeg_support.result(), False)

def test_get_thermo(self):
self.assertEqual(float(self.lmp.get_thermo("temp").result()), 1.1298532212880312)


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

0 comments on commit b1a79fc

Please sign in to comment.