Skip to content

Commit

Permalink
fix tests for yaml and json
Browse files Browse the repository at this point in the history
  • Loading branch information
knipknap committed Jul 13, 2017
1 parent e23550a commit 39e1ded
Show file tree
Hide file tree
Showing 6 changed files with 372 additions and 56 deletions.
73 changes: 70 additions & 3 deletions demo/csv/output1.json
@@ -1,5 +1,72 @@
{
"line": {
"column": {}
}
"line": [
{
"column": [
{
"#text": "data1"
},
{
"#text": "data2 "
},
{
"#text": "data3'''"
},
{
"#text": "data4\"\""
},
{},
{},
{
"#text": "data5"
},
{}
]
},
{
"column": [
{
"#text": "foo1"
},
{
"#text": "foo2"
},
{
"#text": "foo3'''"
},
{
"#text": "foo4\"\""
},
{},
{},
{
"#text": "foo5"
},
{
"#text": "foo6"
}
]
},
{
"column": [
{
"#text": "bar1"
},
{
"#text": "bar2 "
},
{
"#text": "bar3'''"
},
{
"#text": "bar4\"\""
},
{},
{},
{
"#text": "bar5"
},
{}
]
}
]
}
28 changes: 27 additions & 1 deletion demo/csv/output1.yaml
@@ -1,2 +1,28 @@
line:
column: {}
- column:
- '#text': data1
- '#text': 'data2 '
- '#text': data3'''
- '#text': data4""
- {}
- {}
- '#text': data5
- {}
- column:
- '#text': foo1
- '#text': foo2
- '#text': foo3'''
- '#text': foo4""
- {}
- {}
- '#text': foo5
- '#text': foo6
- column:
- '#text': bar1
- '#text': 'bar2 '
- '#text': bar3'''
- '#text': bar4""
- {}
- {}
- '#text': bar5
- {}
29 changes: 28 additions & 1 deletion demo/linesplit/output1.json
@@ -1,3 +1,30 @@
{
"line": {}
"line": [
{
"#text": "a nice line"
},
{
"#text": "another line"
},
{
"#text": "something else"
},
{},
{
"#text": "my name is foo"
},
{
"#text": "your name is bar"
},
{},
{
"#text": "yet a nice line"
},
{
"#text": "yet another line"
},
{
"#text": "yet something else"
}
]
}
12 changes: 11 additions & 1 deletion demo/linesplit/output1.yaml
@@ -1 +1,11 @@
line: {}
line:
- '#text': a nice line
- '#text': another line
- '#text': something else
- {}
- '#text': my name is foo
- '#text': your name is bar
- {}
- '#text': yet a nice line
- '#text': yet another line
- '#text': yet something else
205 changes: 166 additions & 39 deletions demo/tria/output1.json
Expand Up @@ -2,65 +2,192 @@
"week": [
{
"@number": "1",
"day": {
"weekday": {
"#text": "So"
"day": [
{
"weekday": {
"#text": "Mo"
},
"date": {
"#text": "04Jan10"
}
},
"date": {
"#text": "10Jan10"
{
"weekday": {
"#text": "Di"
},
"date": {
"#text": "05Jan10"
}
},
"unit": {
"discipline": {
"#text": "Swim"
{
"weekday": {
"#text": "Mi"
},
"route": {
"#text": "Unterführung"
"date": {
"#text": "06Jan10"
}
},
{
"weekday": {
"#text": "Do"
},
"comment": {
"#text": "6. Einheit, Plan Dez09, Rückentechnik"
"date": {
"#text": "07Jan10"
},
"unit": [
{
"discipline": {
"#text": "Run"
},
"route": {
"#text": "Unterführung"
},
"comment": {
"#text": "LS3AsicsTrabuco, 5mm Neuschnee, rutschig"
},
"time": {
"#text": "15:34(15:34),31:20(15.45),"
}
},
{
"discipline": {
"#text": "Swim"
},
"place": {
"#text": "Hallenbad Markgröningen"
},
"distance": [
{
"#text": "400 ES"
},
{
"#text": "100 AS"
}
]
}
]
},
{
"weekday": {
"#text": "Fr"
},
"date": {
"#text": "08Jan10"
}
},
{
"weekday": {
"#text": "Sa"
},
"time": {
"#text": "15:34(15:34),31:20(15.45),"
"date": {
"#text": "09Jan10"
},
"place": {
"#text": "Hallenbad Markgröningen"
"unit": {
"discipline": {
"#text": "Swim"
},
"comment": {
"#text": "6. Einheit, Plan Dez09, Rückentechnik"
},
"place": {
"#text": "Hallenbad Markgröningen"
},
"distance": [
{
"#text": "400 ES"
},
{
"#text": "6*50 Technik"
},
{
"#text": "8*50 GA1(25 Kraul, 25 Rücken)"
},
{
"#text": "6*100 GA1(Kraul + Rücken + Kraul + Brust im Wechsel)"
},
{
"#text": "25 tauchen, 25 tauchen, 29 tauchen, 33 tauchen"
},
{
"#text": "100 AS"
}
]
}
},
{
"weekday": {
"#text": "So"
},
"distance": {
"#text": "100 AS"
"date": {
"#text": "10Jan10"
}
}
}
]
},
{
"@number": "2",
"day": {
"weekday": {
"#text": "So"
},
"date": {
"#text": "17Jan10"
"day": [
{
"weekday": {
"#text": "Mo"
},
"date": {
"#text": "11Jan10"
}
},
"unit": {
"discipline": {
"#text": "Bike"
{
"weekday": {
"#text": "Mi"
},
"comment": {
"#text": "Feldwege + Straße"
"date": {
"#text": "13Jan10"
}
},
{
"weekday": {
"#text": "Do"
},
"material": {
"#text": "Centurion"
"date": {
"#text": "14Jan10"
},
"route": {
"#text": "Kreissel Oberriexingen, Unterriexingen."
"unit": {
"discipline": {
"#text": "Bike"
},
"comment": {
"#text": "Feldwege + Straße"
},
"material": {
"#text": "Centurion"
},
"route": {
"#text": "Feldwege nach Eglosheim, Monrepos, Bietigheim, Bissingen, dann Straße nach Untermberg, Sachsenheim (Industriegebiet), Fontanis-Lager, Kreissel Oberriexingen, Unterriexingen."
},
"distance": {
"#text": "44.2 km"
},
"average": {
"#text": "18.3 km/h"
}
}
},
{
"weekday": {
"#text": "Fr"
},
"distance": {
"#text": "44.2 km"
"date": {
"#text": "15Jan10"
}
},
{
"weekday": {
"#text": "So"
},
"average": {
"#text": "18.3 km/h"
"date": {
"#text": "17Jan10"
}
}
}
]
}
]
}

0 comments on commit 39e1ded

Please sign in to comment.