jeffreylam2008 / jquery-csv

Automatically exported from code.google.com/p/jquery-csv
MIT License
0 stars 0 forks source link

Failures on test.html file #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Execute the tests given in 
http://jquery-csv.googlecode.com/git/test/test.html

What is the expected output? What do you see instead?
All tests should pass.

What version of the product are you using? On what operating system?
Found on Chrome: 32.0.1700.76 m, windows 7

Please provide any additional information below.
Log:
core: Parsing - from Arrays (1, 0, 1)Rerun
$.csv.fromArrays()
Expected:   
"\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\""
Result:     
"All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
"
Diff:   
"\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"
\"All work\",\"and no play\",\"makes Jack\",\"a dull boy...\"" "All work,and no 
play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
All work,and no play,makes Jack,a dull boy...
" 
Source:     
    at Object.<anonymous> (http://jquery-csv.googlecode.com/git/test/test.html:224:5)

Second failure error:

core: Parsing - from Objects (1, 0, 1)Rerun
$.csv.fromObjects()
Expected:   
"\"ID\",\"iManufacturer\",\"iMPartNumber\",\"iSerialNumber\",\"iSimCategory\",\"
iPartType\",\"iDescription\",\"iGroup\",\"iLocation\",\"iSold\"
\"1\",\"Evans & 
Sutherland\",\"230-132-111AA\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"2\",\"Evans & 
Sutherland\",\"230-132-111AA\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"3\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"4\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"5\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"6\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"7\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"8\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"9\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"10\",\"Evans & 
Sutherland\",\"230-121-150AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\""
Result:     
"ID,iManufacturer,iMPartNumber,iSerialNumber,iSimCategory,iPartType,iDescription
,iGroup,iLocation,iSold
1,Evans & Sutherland,230-132-111AA,,Visual,PCB,,1,Offsite,
2,Evans & Sutherland,230-132-111AA,,Visual,PCB,,1,Offsite,
3,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
4,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
5,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
6,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
7,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
8,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
9,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
10,Evans & Sutherland,230-121-150AC,,Visual,PCB,,1,Offsite,
"
Diff:   
"\"ID\",\"iManufacturer\",\"iMPartNumber\",\"iSerialNumber\",\"iSimCategory\",\"
iPartType\",\"iDescription\",\"iGroup\",\"iLocation\",\"iSold\"
\"1\",\"Evans & 
Sutherland\",\"230-132-111AA\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"2\",\"Evans & 
Sutherland\",\"230-132-111AA\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"3\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"4\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"5\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"6\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"7\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"8\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"9\",\"Evans & 
Sutherland\",\"230-120-112AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"
\"10\",\"Evans & 
Sutherland\",\"230-121-150AC\",\"\",\"Visual\",\"PCB\",\"\",\"1\",\"Offsite\",\"
\"" 
"ID,iManufacturer,iMPartNumber,iSerialNumber,iSimCategory,iPartType,iDescription
,iGroup,iLocation,iSold
1,Evans & Sutherland,230-132-111AA,,Visual,PCB,,1,Offsite,
2,Evans & Sutherland,230-132-111AA,,Visual,PCB,,1,Offsite,
3,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
4,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
5,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
6,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
7,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
8,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
9,Evans & Sutherland,230-120-112AC,,Visual,PCB,,1,Offsite,
10,Evans & Sutherland,230-121-150AC,,Visual,PCB,,1,Offsite,
" 
Source:     
    at Object.<anonymous> (http://jquery-csv.googlecode.com/git/test/test.html:240:5)

Original issue reported on code.google.com by lko.navn...@gmail.com on 17 Jan 2014 at 7:11

GoogleCodeExporter commented 9 years ago
Here is a patch for this issue that updates test.html with new lines and adds 
optional forceDelimiter to fromArrays, fromObjects functions.

Original comment by ice...@gmail.com on 11 Feb 2014 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago
Squashed and corrected fix is available here:
https://github.com/mirlord/jquery-csv/tree/issue-36

Currently I can't push to upstream for an unknown reason.

Original comment by JaGoTerr on 3 Mar 2014 at 7:20