Skip to content

Instantly share code, notes, and snippets.

@wapcaplet
Created June 10, 2020 21:52
Show Gist options
  • Save wapcaplet/c8d71a57a87aaf608594f9d2d6c82cca to your computer and use it in GitHub Desktop.
Save wapcaplet/c8d71a57a87aaf608594f9d2d6c82cca to your computer and use it in GitHub Desktop.
Starting the actual test at Wed Jun 10 15:50:27 2020
Filters: [battery],[ammo_type]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tst is a Catch v2.12.0 host application.
Run with -? for options
-------------------------------------------------------------------------------
battery tool mod test
battery mod properties
-------------------------------------------------------------------------------
battery_mod_test.cpp:28
...............................................................................
battery_mod_test.cpp:50: FAILED:
CHECK( med_mod.magazine_integral() )
with expansion:
false
-------------------------------------------------------------------------------
battery tool mod test
Given: tool compatible with light batteries
When: medium battery mod is installed
Then: tool modification is successful
-------------------------------------------------------------------------------
battery_mod_test.cpp:66
...............................................................................
battery_mod_test.cpp:70: FAILED:
CHECK_FALSE( flashlight.magazine_compatible().empty() )
with expansion:
!true
-------------------------------------------------------------------------------
battery tool mod test
Given: tool compatible with light batteries
When: medium battery mod is installed
Then: medium batteries can be installed
-------------------------------------------------------------------------------
battery_mod_test.cpp:76
...............................................................................
battery_mod_test.cpp:79: FAILED:
CHECK( flashlight.is_reloadable_with( itype_id( "medium_battery_cell" ) ) )
with expansion:
false
battery_mod_test.cpp:80: FAILED:
CHECK( flashlight.magazine_compatible().count( itype_id( "medium_battery_cell" ) ) )
with expansion:
0
-------------------------------------------------------------------------------
battery and tool properties
flashlight properties
-------------------------------------------------------------------------------
battery_mod_test.cpp:183
...............................................................................
battery_mod_test.cpp:202: FAILED:
CHECK( flashlight.ammo_default() == itype_id( "battery" ) )
with expansion:
{?} == {?}
battery_mod_test.cpp:210: FAILED:
CHECK_FALSE( flashlight.ammo_types().empty() )
with expansion:
!true
No test cases matched '[ammo_type]'
===============================================================================
test cases: 3 | 1 passed | 2 failed
assertions: 76 | 70 passed | 6 failed
Test world "Tom" left for inspection.
Ended test at Wed Jun 10 15:50:27 2020
The test took 0.001 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment