Skip to main content

assert_session

Function assert_session 

Source
pub fn assert_session<G: GameData>(start: Start<G>, path: impl AsRef<Path>)
Expand description

A test that the session record at path plays from start with no difference (check_session). With the environment variable SHUYI_BLESS=1 it writes the file again instead (bless_session).

§Panics

If the file can’t be read or written, or the record doesn’t play.