Stage 2 summary at 50 accepted trajectories
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,8 +12,8 @@ CLASS {{p}}snow_fee_hidden DEFINITION PUBLIC FINAL CREATE PUBLIC
|
||||
|
||||
METHODS minimum_charge FOR TESTING.
|
||||
METHODS small_area_rate FOR TESTING.
|
||||
METHODS mid_area_rate FOR TESTING.
|
||||
METHODS mid_area_upper FOR TESTING.
|
||||
METHODS medium_area_rate FOR TESTING.
|
||||
METHODS medium_area_upper FOR TESTING.
|
||||
METHODS large_area_rate FOR TESTING.
|
||||
METHODS express_surcharge FOR TESTING.
|
||||
METHODS emergency_surcharge FOR TESTING.
|
||||
@@ -31,10 +31,8 @@ CLASS {{p}}snow_fee_hidden IMPLEMENTATION.
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD assert_fee.
|
||||
DATA lv_expected TYPE {{p}}snow_fee=>ty_fee.
|
||||
lv_expected = iv_expected.
|
||||
cl_abap_unit_assert=>assert_equals(
|
||||
exp = lv_expected
|
||||
exp = iv_expected
|
||||
act = mo_cut->calculate( iv_area = iv_area
|
||||
iv_priority = iv_priority
|
||||
iv_distance = iv_distance ) ).
|
||||
@@ -48,16 +46,16 @@ CLASS {{p}}snow_fee_hidden IMPLEMENTATION.
|
||||
assert_fee( iv_area = 500 iv_priority = 'S' iv_distance = 0 iv_expected = '100.00' ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD mid_area_rate.
|
||||
assert_fee( iv_area = 501 iv_priority = 'S' iv_distance = 0 iv_expected = '80.16' ).
|
||||
METHOD medium_area_rate.
|
||||
assert_fee( iv_area = 625 iv_priority = 'S' iv_distance = 0 iv_expected = '100.00' ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD mid_area_upper.
|
||||
METHOD medium_area_upper.
|
||||
assert_fee( iv_area = 2000 iv_priority = 'S' iv_distance = 0 iv_expected = '320.00' ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD large_area_rate.
|
||||
assert_fee( iv_area = 2001 iv_priority = 'S' iv_distance = 0 iv_expected = '240.12' ).
|
||||
assert_fee( iv_area = 2500 iv_priority = 'S' iv_distance = 0 iv_expected = '300.00' ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD express_surcharge.
|
||||
|
||||
Reference in New Issue
Block a user