Skip to content

Commit 3dd729d

Browse files
FrozenCowisaacs
authored andcommitted
Made test expect no whitespace around '='
1 parent c90fcd2 commit 3dd729d

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

test/foo.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ var i = require("../")
66
, fixture = path.resolve(__dirname, "./fixtures/foo.ini")
77
, data = fs.readFileSync(fixture, "utf8")
88
, d
9-
, expectE = 'o = p\n'
10-
+ 'a with spaces = b c\n'
11-
+ '" xa n p " = "\\"\\r\\nyoyoyo\\r\\r\\n"\n'
12-
+ '"[disturbing]" = hey you never know\n'
13-
+ 's = something\n'
14-
+ 's1 = \"something\'\n'
15-
+ 's2 = something else\n'
16-
+ 'zr[] = deedee\n'
17-
+ 'ar[] = one\n'
18-
+ 'ar[] = three\n'
19-
+ 'ar[] = this is included\n'
20-
+ 'br = warm\n'
9+
, expectE = 'o=p\n'
10+
+ 'a with spaces=b c\n'
11+
+ '" xa n p "="\\"\\r\\nyoyoyo\\r\\r\\n"\n'
12+
+ '"[disturbing]"=hey you never know\n'
13+
+ 's=something\n'
14+
+ 's1=\"something\'\n'
15+
+ 's2=something else\n'
16+
+ 'zr[]=deedee\n'
17+
+ 'ar[]=one\n'
18+
+ 'ar[]=three\n'
19+
+ 'ar[]=this is included\n'
20+
+ 'br=warm\n'
2121
+ '\n'
2222
+ '[a]\n'
23-
+ 'av = a val\n'
24-
+ 'e = { o: p, a: '
23+
+ 'av=a val\n'
24+
+ 'e={ o: p, a: '
2525
+ '{ av: a val, b: { c: { e: "this [value]" '
26-
+ '} } } }\nj = "\\"{ o: \\"p\\", a: { av:'
26+
+ '} } } }\nj="\\"{ o: \\"p\\", a: { av:'
2727
+ ' \\"a val\\", b: { c: { e: \\"this [value]'
28-
+ '\\" } } } }\\""\n"[]" = a square?\n'
29-
+ 'cr[] = four\ncr[] = eight\n\n'
30-
+'[a.b.c]\ne = 1\n'
31-
+ 'j = 2\n\n[x\\.y\\.z]\nx.y.z = xyz\n\n'
32-
+ '[x\\.y\\.z.a\\.b\\.c]\na.b.c = abc\n'
33-
+ 'nocomment = this\\; this is not a comment\n'
34-
+ 'noHashComment = this\\# this is not a comment\n'
28+
+ '\\" } } } }\\""\n"[]"=a square?\n'
29+
+ 'cr[]=four\ncr[]=eight\n\n'
30+
+'[a.b.c]\ne=1\n'
31+
+ 'j=2\n\n[x\\.y\\.z]\nx.y.z=xyz\n\n'
32+
+ '[x\\.y\\.z.a\\.b\\.c]\na.b.c=abc\n'
33+
+ 'nocomment=this\\; this is not a comment\n'
34+
+ 'noHashComment=this\\# this is not a comment\n'
3535
, expectD =
3636
{ o: 'p',
3737
'a with spaces': 'b c',

0 commit comments

Comments
 (0)