Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
forks
eini
Commits
a3f73b0c
Commit
a3f73b0c
authored
13 years ago
by
Shunichi Shinohara
Browse files
Options
Download
Email Patches
Plain Diff
Add test cases related to space characters
parent
d653ad62
master
oktell
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.1
1.0.0
oktell/1.2.9
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/eini_tests.erl
+27
-0
test/eini_tests.erl
with
27 additions
and
0 deletions
+27
-0
test/eini_tests.erl
View file @
a3f73b0c
...
...
@@ -257,6 +257,33 @@ one_section_title_and_one_prop_test_() ->
parse_string
(
"[title]
\n
"
"key1=value1;continue
\n
"
)),
%% key has trailing spaces
?
_
assertEqual
({
ok
,
[
{{
"title"
,
default
},
[{
"key1"
,
"value1"
}]}
]},
parse_string
(
"[title]
\n
"
"key1 =value1
\n
"
)),
%% value has preceding and trailing spaces
?
_
assertEqual
({
ok
,
[
{{
"title"
,
default
},
[{
"key1"
,
"value1"
}]}
]},
parse_string
(
"[title]
\n
"
"key1= value1
\n
"
)),
%% value has characters which can not used in titles or keys
?
_
assertEqual
({
ok
,
[
{{
"title"
,
default
},
[{
"key1"
,
"value1$% '""#!+*=@/:+"
}]}
]},
parse_string
(
"[title]
\n
"
"key1=value1$% '""#!+*=@/:+
\n
"
))
]}.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help