1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
Commit Graph

2992 Commits

Author SHA1 Message Date
Rob Rix
15f27c5faa We have a leaf for the purposes of this test. 2015-12-10 15:48:23 -05:00
Rob Rix
9619d2fa7f That is not how any of this works. 2015-12-10 15:47:34 -05:00
Rob Rix
46bd5bc545 Test that termToLines produces complete lines. 2015-12-10 15:41:02 -05:00
Rob Rix
200037b509 Test whether the last element in a Line is open. 2015-12-10 15:34:11 -05:00
Rob Rix
c2f54ce8d8 Determine whether the last in a list of HTML elements is open or not. 2015-12-10 15:31:53 -05:00
Rob Rix
325d6e6a73 Add a test of multi-line patches. 2015-12-10 15:11:56 -05:00
Rob Rix
ed87838de6 Add a trace' function to help trace some bugs. 2015-12-10 15:11:42 -05:00
Rob Rix
3e8517a2a3 Full width tables. 2015-12-10 14:50:08 -05:00
Rob Rix
e4b5c97db2 Don’t add an empty/empty row when one side or the other is closed. 2015-12-10 14:35:08 -05:00
Rob Rix
14de32f3e9 Don’t adjoin empty/empty rows onto the top. 2015-12-10 14:34:52 -05:00
joshvera
1b370a059d rename some tests 2015-12-10 14:26:49 -05:00
Rob Rix
d9e9b73fd7 Move the Empty/Empty case up. 2015-12-10 14:25:04 -05:00
joshvera
2b0c9dc4e2 Fix some of the tests 2015-12-10 14:21:52 -05:00
Rob Rix
dbe1db5643 termToLines produces elements interspersed with breaks. 2015-12-10 14:20:47 -05:00
Rob Rix
004bedf46a annotatedToRows produces elements interspersed with breaks. 2015-12-10 14:20:34 -05:00
Rob Rix
6d2a89b55a textElements calls out to elementAndBreak. 2015-12-10 14:17:51 -05:00
Rob Rix
43a20d00bd Extract the element/break function. 2015-12-10 14:17:22 -05:00
Rob Rix
e27122a142 Only adjoin when we have open lines above us. 2015-12-10 14:01:06 -05:00
Rob Rix
ed86b344d5 For debugging render Break to <br> 2015-12-10 14:00:02 -05:00
Rob Rix
7f742bc882 Try to only push through empty lines which have open lines above them. 2015-12-10 13:40:07 -05:00
Rob Rix
d57443afd0 Find the most recent open line in a list. 2015-12-10 13:38:57 -05:00
Rob Rix
72fef55675 Adjoin expects breaks at the end of lines. 2015-12-10 13:17:09 -05:00
Rob Rix
d1018576fd Add breaks to the ends of lines. 2015-12-10 13:16:46 -05:00
Rob Rix
67ec6f897f maybeLast produces the last element of a list, if any. 2015-12-10 13:16:42 -05:00
Rob Rix
7abe07bd16 actualLines ends lines with their newlines. 2015-12-10 13:15:32 -05:00
Rob Rix
0c9308b6ae Use Break to represent newlines. 2015-12-10 11:35:46 -05:00
joshvera
5b8908ac82 Represent newlines distinct from empty strings 2015-12-10 11:33:02 -05:00
joshvera
6426a57d51 Use Break in adjoin2 2015-12-10 11:13:16 -05:00
joshvera
6b590a840f Map newlines to Break 2015-12-10 11:11:02 -05:00
Rob Rix
a0253de5bf Don’t wrap the contents of empty lines. 2015-12-10 11:06:04 -05:00
joshvera
5c9f2762dd Remove EmptyRow case 2015-12-10 10:59:46 -05:00
Rob Rix
da2c1505f3 Provide a total definition of unLine.
Fixes #304.
2015-12-10 10:59:07 -05:00
Rob Rix
b5f9536bcb Split up the definition of Line. 2015-12-10 10:59:07 -05:00
Rob Rix
641ba9b7b7 🔥 bimap. 2015-12-10 10:58:23 -05:00
Rob Rix
84a817b6bf Rewrap the rows in uls. 2015-12-10 10:57:47 -05:00
Rob Rix
e86b43380f Add a rewrap function. 2015-12-10 10:57:47 -05:00
joshvera
18c95e0b87 Fix inserted ranges returned from diffToRows 2015-12-10 10:53:47 -05:00
joshvera
9039068a5c intersperse commas in Show Line instance 2015-12-09 19:06:29 -05:00
joshvera
79d8924b58 Remove maybeFirstNewLine 2015-12-09 18:50:31 -05:00
joshvera
40cc463a90 simplify appending a row with two newlines 2015-12-09 17:40:41 -05:00
joshvera
eecfd4ff6d promotes HTML through empty lines 2015-12-09 17:38:40 -05:00
joshvera
a05f03dd92 add some test combinators 2015-12-09 17:29:25 -05:00
joshvera
f3381509b7 remove adjoinRows tests 2015-12-09 17:29:11 -05:00
joshvera
72a00b0a15 Remove adjoinRows 2015-12-09 16:59:40 -05:00
joshvera
088139ed27 Delete comments 2015-12-09 16:55:26 -05:00
joshvera
d98e8f0801 don't append if both sides start with newlines 2015-12-09 16:52:06 -05:00
joshvera
5a252911a2 Fix incorrect index in test 2015-12-09 15:54:31 -05:00
Rob Rix
99bc580df2 Correct a fixture. 2015-12-09 15:28:42 -05:00
Rob Rix
940be43244 Show instances which make it easier to tell where rows start and end. 2015-12-09 15:22:29 -05:00
Rob Rix
6f53ed41cf Sp. 2015-12-09 15:07:30 -05:00