2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
23 flip_switch => 'toggle',
31 ok( $room->is_lit, 'set is_lit to 1 using ->illuminate' );
32 ok( !$room->is_dark, 'check if is_dark does the right thing' );
35 ok( !$room->is_lit, 'set is_lit to 0 using ->darken' );
36 ok( $room->is_dark, 'check if is_dark does the right thing' );
39 ok( $room->is_lit, 'toggle is_lit back to 1 using ->flip_switch' );
40 ok( !$room->is_dark, 'check if is_dark does the right thing' );
43 ok( !$room->is_lit, 'toggle is_lit back to 0 again using ->flip_switch' );
44 ok( $room->is_dark, 'check if is_dark does the right thing' );