1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 from uitest
.framework
import UITestCase
11 from libreoffice
.calc
.csv_dialog
import load_csv_file
12 from libreoffice
.calc
.document
import get_cell_by_position
15 class Tdf39716(UITestCase
):
17 def test_tdf39716(self
):
19 with
load_csv_file(self
, "tdf39716.csv", True):
22 document
= self
.ui_test
.get_component()
24 # Without the fix in place, this test would have failed with
25 # AssertionError: 2.5e-13 != 0.0
26 self
.assertEqual(2.5e-13, get_cell_by_position(document
, 0, 0, 0).getValue())
27 self
.assertEqual(5e-13, get_cell_by_position(document
, 0, 0, 1).getValue())
28 self
.assertEqual(7.5e-13, get_cell_by_position(document
, 0, 0, 2).getValue())
29 self
.assertEqual(1e-12, get_cell_by_position(document
, 0, 0, 3).getValue())
31 # vim: set shiftwidth=4 softtabstop=4 expandtab: