All tests passing for C implementation.
This commit is contained in:
		@@ -10,21 +10,21 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Handles a blank line with a single space
 | 
			
		||||
  key linedata:basic
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input \s
 | 
			
		||||
  output
 | 
			
		||||
   | level 1 | indent   | offsetHead 1 | offsetTail 1 | line   |
 | 
			
		||||
 | 
			
		||||
 it Handles a blank line with two spaces
 | 
			
		||||
  key linedata:basic
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input \s\s
 | 
			
		||||
  output
 | 
			
		||||
   | level 2 | indent   | offsetHead 2 | offsetTail 2 | line    |
 | 
			
		||||
 | 
			
		||||
 it Handles a normal line at indent level 0
 | 
			
		||||
  key linedata:basic
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input
 | 
			
		||||
   line 1
 | 
			
		||||
  output
 | 
			
		||||
@@ -32,7 +32,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Handles a normal line at indent level 1
 | 
			
		||||
  key linedata:basic
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input
 | 
			
		||||
    line 1
 | 
			
		||||
  output
 | 
			
		||||
@@ -40,7 +40,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Handles a normal line at indent level 2
 | 
			
		||||
  key linedata:basic
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input
 | 
			
		||||
     line 1
 | 
			
		||||
  output
 | 
			
		||||
@@ -48,7 +48,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Handles a normal line at indent level 1 indented with tabs
 | 
			
		||||
  key linedata:tabs
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input
 | 
			
		||||
   \tline 1
 | 
			
		||||
  output
 | 
			
		||||
@@ -56,7 +56,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Handles a normal line at indent level 2 indented with tabs
 | 
			
		||||
  key linedata:tabs
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input
 | 
			
		||||
   \t\tline 1
 | 
			
		||||
  output
 | 
			
		||||
@@ -64,7 +64,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Nests a normal line under a preceding normal line
 | 
			
		||||
  key linedata:basic
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input
 | 
			
		||||
   line 1
 | 
			
		||||
    line 2
 | 
			
		||||
@@ -74,7 +74,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Nests multiple normal lines under a preceding normal line
 | 
			
		||||
  key linedata:basic
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input
 | 
			
		||||
   line 1
 | 
			
		||||
    line 2
 | 
			
		||||
@@ -88,7 +88,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Does not nest an empty line under a preceding normal line
 | 
			
		||||
  key linedata:basic
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  comment Two newlines are needed here. A single newline will look to readline as if the input is finished.
 | 
			
		||||
  input line 1\n\n
 | 
			
		||||
  output
 | 
			
		||||
@@ -97,7 +97,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Does not nest multiple empty lines under a preceding normal line
 | 
			
		||||
  key linedata:basic
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  comment Four newlines are needed here. A single newline will look to readline as if the input is finished.
 | 
			
		||||
  input line 1\n\n\n\n
 | 
			
		||||
  output
 | 
			
		||||
@@ -108,7 +108,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Handles head and tail matching for lines with head and tail
 | 
			
		||||
  key linedata:head-tail
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input
 | 
			
		||||
     head1 tail1 tail2 tail3
 | 
			
		||||
  output
 | 
			
		||||
@@ -116,7 +116,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Handles head and tail matching for lines with head but no tail
 | 
			
		||||
  key linedata:head-tail
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input
 | 
			
		||||
     head1
 | 
			
		||||
  output
 | 
			
		||||
@@ -124,7 +124,7 @@ describe LineData
 | 
			
		||||
 | 
			
		||||
 it Handles head and tail matching for lines with head and trailing space
 | 
			
		||||
  key linedata:head-tail
 | 
			
		||||
  packages js python
 | 
			
		||||
  packages c js python
 | 
			
		||||
  input   head1 \n
 | 
			
		||||
  output
 | 
			
		||||
   | head head1 | tail  |
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user