ready to test #167

Adjusted the check values in the Unit test to the values that Excel 2007 creates

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@311 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
This commit is contained in:
Gregor Wolf 2012-05-01 18:53:22 +00:00
parent 3bb877e17f
commit ea62e0eac3

View File

@ -727,10 +727,10 @@ CLASS lcl_excel_common_test IMPLEMENTATION.
* Test 1. Basic conversion
TRY.
ep_value = zcl_excel_common=>time_to_excel_string( '000001' ).
" A test directly in Excel returns the value 0.0000115740740740741000
cl_abap_unit_assert=>assert_equals(
act = ep_value
exp = '0.00001'
exp = '0.0000115740740741'
msg = 'Wrong date conversion'
level = if_aunit_constants=>critical
).
@ -744,10 +744,10 @@ CLASS lcl_excel_common_test IMPLEMENTATION.
* Test 2. Basic conversion
TRY.
ep_value = zcl_excel_common=>time_to_excel_string( '235959' ).
" A test directly in Excel returns the value 0.9999884259259260000000
cl_abap_unit_assert=>assert_equals(
act = ep_value
exp = '0.99999'
exp = '0.9999884259259260'
msg = 'Wrong date conversion'
level = if_aunit_constants=>critical
).
@ -781,7 +781,7 @@ CLASS lcl_excel_common_test IMPLEMENTATION.
cl_abap_unit_assert=>assert_equals(
act = ep_value
exp = '0.1'
exp = '0.1000000000000000'
msg = 'Wrong date conversion'
level = if_aunit_constants=>critical
).