Skip to content

Commit

Permalink
Adding (commented) test for no indentation issue (#15).
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad.andersen committed Sep 20, 2009
1 parent 18ad983 commit 8957f83
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions spyc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ werte:
1: nummer 1
0: Stunde 0

noindent_records:
- record1: value1
- record2: value2

# [Endloop]
endloop: |
Does this line in the end indeed make Spyc go to an infinite loop?
7 changes: 7 additions & 0 deletions tests/ParseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,13 @@ public function testWerte() {
$this->assertSame (array ('1' => 'nummer 1', '0' => 'Stunde 0'), $this->yaml['werte']);
}

/* public function testNoIndent() {
$this->assertSame (array(
array ('record1'=>'value1'),
array ('record2'=>'value2')
)
, $this->yaml['noindent_records']);
} */

public function testSpecialCharacters() {
$this->assertSame ('[{]]{{]]', $this->yaml['special_characters']);
Expand Down
3 changes: 2 additions & 1 deletion tests/indent_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ development:
database: rails_dev
<<: *login

"key": "value:"
"key": "value:"
colon_only: ":"

0 comments on commit 8957f83

Please sign in to comment.