Skip to content

Commit 7b0fe82

Browse files
committed
added test fixtures
1 parent c7566a7 commit 7b0fe82

File tree

5 files changed

+44
-0
lines changed

5 files changed

+44
-0
lines changed

fixtures/docopt.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<<<'DOCOPT'
2+
gendiff -h
3+
4+
Generate diff
5+
6+
Usage:
7+
gendiff (-h|--help)
8+
gendiff (-v|--version)
9+
gendiff [Options]... FILE1 FILE2
10+
11+
Options:
12+
-h --help Show this screen
13+
-v --version Show version
14+
--format <fmt> Report format [default: stylish]
15+
16+
DOCOPT

fixtures/fileForArray.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"host": "hexlet.io",
3+
"timeout": 50
4+
}

fixtures/fileNotJSON.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
"host" => "hexlet.io",
3+
"timeout" => 50
4+
]

fixtures/filesContent.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
file1.json content:
2+
{
3+
hexlet.io
4+
50
5+
123.234.53.22
6+
7+
}
8+
file2.json content:
9+
{
10+
20
11+
1
12+
hexlet.io
13+
}

fixtures/filesDiffs.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
hexlet.io
3+
- 50
4+
+ 20
5+
- 123.234.53.22
6+
-
7+
}

0 commit comments

Comments
 (0)