Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
cd9ae26d
Commit
cd9ae26d
authored
9 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/gh-1089-csv-bug-fix' into 1.6
parents
04c04c3e
5231be97
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/app/csv.result
+2
-1
2 additions, 1 deletion
test/app/csv.result
test/app/csv.test.lua
+3
-1
3 additions, 1 deletion
test/app/csv.test.lua
with
5 additions
and
2 deletions
test/app/csv.result
+
2
−
1
View file @
cd9ae26d
TAP version 13
1..
8
1..
9
ok - obj test1
ok - obj test2
ok - obj test3
...
...
@@ -8,3 +8,4 @@ ok - fio test2
ok - fio test3
ok - test roundtrip
ok - test load(dump(t))
ok - final comma
This diff is collapsed.
Click to expand it.
test/app/csv.test.lua
+
3
−
1
View file @
cd9ae26d
...
...
@@ -36,7 +36,7 @@ local test6_ans = "|23|\t|456|\t|abcac|\t|'multiword field 4'|\t\n|none|" ..
"lag[ flag ])|\t\n||\t||\t||\t\n"
test
=
tap
.
test
(
"csv"
)
test
:
plan
(
8
)
test
:
plan
(
9
)
readable
=
{}
readable
.
read
=
myread
...
...
@@ -107,6 +107,8 @@ test:is(table2str(t), table2str(t2), "test roundtrip")
test
:
is
(
table2str
(
t
),
table2str
(
csv
.
load
(
csv
.
dump
(
t
))),
"test load(dump(t))"
)
test
:
is
(
table2str
(
csv
.
load
(
'a,b,c,'
)),
'|a|\t|b|\t|c|\t||\t\n'
,
"final comma"
)
fio
.
unlink
(
file1
)
fio
.
unlink
(
file2
)
fio
.
unlink
(
file3
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment