diff --git a/tests/test_concurrent.py b/tests/test_concurrent.py index 48f390d..7ae0b58 100644 --- a/tests/test_concurrent.py +++ b/tests/test_concurrent.py @@ -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() @@ -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()