nalmadi / EMIP-Toolkit

EMIP Toolkit (EMTK): A Python Library for Processing Eye Movement in Programming Data
16 stars 22 forks source link

Adding tests to some methods #58

Closed xmu23 closed 2 years ago

xmu23 commented 2 years ago

This added a test_EMIP.py file. The commit on the emip_toolkit.py is the same as the commit on the #52 pull request. One part of this test is also based on the modified version of the add_tokens_to_AOIs method. The test file includes tests for EMIP_datatset method, get_fixation_number method, get_sample_number method, get_trial_image method, sample_offset method of the trial class, reset_offset method, find_aoi method, add_tokens_to_AOIs method which is modified to be availble for the line AOI, add_srcml_to_AOIs method, and hit_test method.