#
# csv5.txt - output tests
#

csvputline  1                      # should fail
csvputstr   1  rubbish             # should fail
csvputint   1  13                  # should fail
csvputreal  1  1.3                 # should fail

csvopen     1 data/csv5.output w   # should open OK

csvputstr   1 comma"normal         # output "comma""normal"
csvputint   1 42                   # output ,42
csvputreal  1 314.15926            # output ,314.15926000000002
csvputline  1                      # add \n

csvsetquote 1 NORMAL
csvputstr   1 comma"normal         # output "comma""normal"
csvputint   1 200000000            # output ,200000000
csvputreal  1 0.00031415926        # output ,0.00031415926
csvputline  1                      # add \n

csvsetnl    1 CRLF                 
csvputline  1                      # blank line ended with \r\n

csvsetsep   1 |
csvsetquote 1 NEVER
csvsetnl    1 CR
csvputstr   1 cutmark"never        # output cutmark"never
csvputint   1 -2                   # output |-2
csvputreal  1 0                    # output |0.0
csvputline  1                      # add \r

csvsetsep   1 ,
csvsetquote 1 ALWAYS
csvsetnl    1 LF
csvputstr   1 comma"always         # output "comma""always"
csvputint   1 -0                   # output ,"0"
csvputreal  1 -10245               # output ,"-10245.0"
csvputline  1                      # add \n

csvsetquote 1 MINIMAL
csvputstr   1 comma"minimal        # output comma"minimal
csvputint   1 65000                # output ,65000
csvputreal  1 0.0000000000000005   # output ,0.0000000000000005
csvputline  1                      # add \n

csvputstr   1 comma,minimal        # output "comma,minimal"
csvputint   1 99999                # output ,99999
csvputreal  1 0.9999999999999999   # output ,0.9999999999999999
csvputline  1                      # add \n

csvsetsep   1 -
csvputstr   1 hyphen,minimal       # output hyphen,minimal
csvputint   1 10                   # output -10
csvputreal  1 0.9                  # output -0.9
csvputline  1                      # add \n

csvputstr   1 hyphen-minimal       # output "hyphen-minimal"
csvputint   1 -10                  # output -"-10"
csvputreal  1 -9                   # output -"-9.0"
csvputline  1                      # add \n

csvclose    1

#
# Should throw 4 errors
#
