diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-01-21 09:01:25 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-01-21 10:24:22 +0100 |
| commit | d01f0ceae62116443c501889f88c0f8782ec6250 (patch) | |
| tree | b174983ed272e5a1137dbfe4cce3abd0918d2042 /tests/importCSV_test.ml | |
| parent | 778f4e0b649663b6ef838b2ee71b1df363b961d5 (diff) | |
Prevent number for beiing escaped as string when generating the csv filemain
Diffstat (limited to 'tests/importCSV_test.ml')
| -rw-r--r-- | tests/importCSV_test.ml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/importCSV_test.ml b/tests/importCSV_test.ml index 748c58b..c5d017a 100644 --- a/tests/importCSV_test.ml +++ b/tests/importCSV_test.ml @@ -11,6 +11,18 @@ let float_repr = in () +let significant_zero = + "leading 0" >:: fun () -> + Alcotest.(check string) + "00123" "=\"00123\"" + ImportDataTypes.Value.(to_string "C" (Content "00123")); + Alcotest.(check string) + "0.0123" "0.0123" + ImportDataTypes.Value.(to_string "C" (Content "0.0123")); + Alcotest.(check string) + "00123 A" "00123 A" + ImportDataTypes.Value.(to_string "C" (Content "00123 A")) + let test_suit = [ ( "Column A" >:: fun () -> @@ -30,6 +42,7 @@ let test_suit = in () ); float_repr; + significant_zero; ] let tests = "importCSV_test" >::: test_suit |
