StrictDoc Documentation
tests/integration/features/excel/import/02_float_fields_converted_to_strings/test.itest
Source file coverage
Path:
tests/integration/features/excel/import/02_float_fields_converted_to_strings/test.itest
Lines:
17
Non-empty lines:
16
Non-empty lines covered with requirements:
16 / 16 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# Verify that the basic Excel importer converts float values like "1.2" or "4.5"
3
# to string, otherwise StrictDoc fails with:
4
# error: 'float' object has no attribute 'strip'  
5
#
6
# Bug report that reproduced this on a LEVEL field:
7
# https://github.com/strictdoc-project/strictdoc/pull/2682
8
#
9
# @relation(SDOC-SRS-152, scope=file)
10
#
11
 
12
RUN: %mkdir %T
13
RUN: %strictdoc convert %S/input.xls %T/ --input-format=excel
14
RUN: %diff %T/input.sdoc %S/expected/expected.sdoc
15
RUN: %mkdir %T_xlsx
16
RUN: %strictdoc convert %S/input.xlsx %T_xlsx/
17
RUN: %diff %T_xlsx/input.sdoc %S/expected_xslx/expected.sdoc