-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve condition in solution. Remove debugger referrence. Add unit t…
…est and description to manual
- Loading branch information
Mateusz Samsel
committed
Jul 17, 2017
1 parent
aa275a0
commit 77bffe3
Showing
5 changed files
with
524 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,331 @@ | ||
<textarea id="table-1"> | ||
<table> | ||
<tr> | ||
<td>[foo]</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>[foo]</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
</table> | ||
=> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</textarea> | ||
|
||
<textarea id="table-2"> | ||
<table> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>[bar</td> | ||
<td>baz]</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
</table> | ||
=> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</textarea> | ||
|
||
<textarea id="table-3"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="2" scope="col"> | ||
[Header1] | ||
</th> | ||
<th colspan="1" scope="col"> | ||
Header2 | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
=> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="1" scope="col"> | ||
Header2 | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>baz</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</textarea> | ||
|
||
<textarea id="table-4"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="3" scope="col"> | ||
Header | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>[baz]</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
=> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="2" scope="col"> | ||
Header | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</textarea> | ||
|
||
<textarea id="table-5"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="3" scope="col"> | ||
Header1 | ||
</th> | ||
<th colspan="3" scope="col"> | ||
Header2 | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>[baz</td> | ||
<td>foo]</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
=> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="2" scope="col"> | ||
Header1 | ||
</th> | ||
<th colspan="2" scope="col"> | ||
Header2 | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</textarea> | ||
|
||
<textarea id="table-6"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="3" scope="col"> | ||
Header1 | ||
</th> | ||
<th colspan="3" scope="col"> | ||
Header2 | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
<td>[foo</td> | ||
<td>bar</td> | ||
<td>baz]</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
<td>[foo</td> | ||
<td>bar</td> | ||
<td>baz]</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
<td>[foo</td> | ||
<td>bar</td> | ||
<td>baz]</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
=> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="3" scope="col"> | ||
Header1 | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</textarea> | ||
|
||
<textarea id="table-7"> | ||
<table> | ||
<tr> | ||
<td>[foo</td> | ||
<td>bar</td> | ||
<td>baz]</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
<tr> | ||
<td>foo</td> | ||
<td>bar</td> | ||
<td>baz</td> | ||
</tr> | ||
</table> | ||
=> | ||
|
||
</textarea> |
Oops, something went wrong.