|
@@ -287,6 +287,59 @@ if $ARGS[0] = 'test_prostitute_work_hours_1am_Pushkin':
|
|
|
killvar 'region'
|
|
|
end
|
|
|
|
|
|
+if $ARGS[0] = 'test_is_solicitation_location_pav_commercial':
|
|
|
+ $TESTNAME = "Location is Pavlovsk Commercial, check if solicitation location check returns true."
|
|
|
+ $FUNCTIONNAME = 'is_solicitation_location'
|
|
|
+
|
|
|
+ if _ISVALIDCALL['<<$LOCATIONNAME>>,<<$FUNCTIONNAME>>'] ! 0:
|
|
|
+ gs 'testframework', 'testsetup'
|
|
|
+ $loc = 'pav_commercial'
|
|
|
+ menu_off = 0
|
|
|
+ $loc_arg = ''
|
|
|
+
|
|
|
+ EXPECTED = _TRUE
|
|
|
+ $EXPECTED_MESSAGE = "FUNC('<<$LOCATIONNAME>>', '<<$FUNCTIONNAME>>') => <<EXPECTED>>"
|
|
|
+
|
|
|
+ ACTUAL = FUNC($LOCATIONNAME, $FUNCTIONNAME, -1)
|
|
|
+ $ACTUAL_MESSAGE = "FUNC('<<$LOCATIONNAME>>', '<<$FUNCTIONNAME>>') => <<ACTUAL>>"
|
|
|
+ TESTRESULT = EXPECTED = ACTUAL
|
|
|
+ else:
|
|
|
+ $ACTUAL_MESSAGE = '<<$LOCATIONNAME>> <<$FUNCTIONNAME>> does not exist.'
|
|
|
+ end
|
|
|
+ gs 'testframework', 'addTestResult'
|
|
|
+ gs 'testframework', 'testDefaultCleanup'
|
|
|
+ killvar 'loc'
|
|
|
+ killvar 'menu_off'
|
|
|
+ killvar 'loc_arg'
|
|
|
+end
|
|
|
+
|
|
|
+if $ARGS[0] = 'test_is_solicitation_location_city_center':
|
|
|
+ $TESTNAME = "Location is City Center, check if solicitation location check returns false."
|
|
|
+ $FUNCTIONNAME = 'is_solicitation_location'
|
|
|
+
|
|
|
+ if _ISVALIDCALL['<<$LOCATIONNAME>>,<<$FUNCTIONNAME>>'] ! 0:
|
|
|
+ gs 'testframework', 'testsetup'
|
|
|
+ $loc = 'city_center'
|
|
|
+ menu_off = 0
|
|
|
+ $loc_arg = ''
|
|
|
+
|
|
|
+ EXPECTED = _FALSE
|
|
|
+ $EXPECTED_MESSAGE = "FUNC('<<$LOCATIONNAME>>', '<<$FUNCTIONNAME>>') => <<EXPECTED>>"
|
|
|
+
|
|
|
+ ACTUAL = FUNC($LOCATIONNAME, $FUNCTIONNAME, -1)
|
|
|
+ $ACTUAL_MESSAGE = "FUNC('<<$LOCATIONNAME>>', '<<$FUNCTIONNAME>>') => <<ACTUAL>>"
|
|
|
+ TESTRESULT = EXPECTED = ACTUAL
|
|
|
+ else:
|
|
|
+ $ACTUAL_MESSAGE = '<<$LOCATIONNAME>> <<$FUNCTIONNAME>> does not exist.'
|
|
|
+ end
|
|
|
+ gs 'testframework', 'addTestResult'
|
|
|
+ gs 'testframework', 'testDefaultCleanup'
|
|
|
+ killvar 'loc'
|
|
|
+ killvar 'menu_off'
|
|
|
+ killvar 'loc_arg'
|
|
|
+end
|
|
|
+
|
|
|
+
|
|
|
killvar 'LOCATIONNAME'
|
|
|
killvar '_ISTEST'
|
|
|
|