1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00
Commit Graph

4476 Commits

Author SHA1 Message Date
Matt Diephouse
01f401edfb Add a passing diff test 2016-02-17 17:18:40 -05:00
Matt Diephouse
f1f7ca26c7 Rename test fixture to have format name 2016-02-17 17:18:29 -05:00
Matt Diephouse
a9d9a06440 Include the format name 2016-02-17 17:14:42 -05:00
Matt Diephouse
5af83691fd Test different output formats 2016-02-17 17:10:04 -05:00
Matt Diephouse
7dbbe1ff9e Load patch and split files too 2016-02-17 16:10:28 -05:00
Matt Diephouse
41063f6dc8 Add a function to test --split 2016-02-17 16:06:24 -05:00
Matt Diephouse
274a4b7af7 Denote that this is --unified 2016-02-17 16:00:06 -05:00
Matt Diephouse
5c1e1ce597 Shorter names 2016-02-17 15:59:16 -05:00
Matt Diephouse
bf12a2a13e Pass a renderer into testDiff 2016-02-17 15:54:37 -05:00
Matt Diephouse
548395aa5f Make A and B required 2016-02-17 15:21:37 -05:00
Matt Diephouse
9c2e4f78d2 Move failing tests to todo dirs 2016-02-17 12:57:10 -05:00
Matt Diephouse
ed1a89b6b7 Also test that test/diffs/ isn't empty 2016-02-17 12:54:42 -05:00
Josh Vera
458b473a8a Merge pull request #439 from github/hush-little-vector-don’t-you-cry
Hush little vector don’t you cry
2016-02-17 11:51:23 -05:00
Rob Rix
adb9d009cb Merge branch 'master' into hush-little-vector-don’t-you-cry
# Conflicts:
#	semantic-diff.cabal
2016-02-17 11:43:29 -05:00
Josh Vera
669e557a25 Merge pull request #437 from github/test-corpus
Add a test corpus
2016-02-17 11:33:47 -05:00
Rob Rix
c42a81fd19 Depend on the keyed & fixed categories. 2016-02-17 11:03:21 -05:00
Rob Rix
dec0888f57 Pair is fixed there, too. 2016-02-17 11:03:07 -05:00
Rob Rix
b3c1dc5e63 Restore keyedCategories/fixedCategories. 2016-02-17 11:02:36 -05:00
Rob Rix
08eca37a04 pair is language-agnostic. 2016-02-17 10:59:50 -05:00
Rob Rix
56e7f29058 Document rel_op. 2016-02-17 10:59:41 -05:00
Matt Diephouse
8df993408d Set the correct flags 2016-02-16 16:45:49 -05:00
Matt Diephouse
f743eef743 Add a test for word diffs 2016-02-16 16:43:37 -05:00
Matt Diephouse
f2952e2ff1 Document some things I forgot to document 2016-02-16 16:39:36 -05:00
Matt Diephouse
c8edf79abb Add a spec for test files 2016-02-16 16:38:31 -05:00
Matt Diephouse
5127376e68 diffFiles :: Parser -> Renderer T.Text b -> (Source Char, Source Char) -> IO b 2016-02-16 16:09:58 -05:00
Matt Diephouse
ac053940fe Add a spec for on-disk tests 2016-02-16 12:33:41 -05:00
Rob Rix
792b8b9995 Relational operators are binary. 2016-02-13 22:33:57 -05:00
Rob Rix
b137678519 Remove the intersect test. 2016-02-13 22:32:11 -05:00
Rob Rix
1b3c9041b9 Represent keyedness as a predicate. 2016-02-13 22:32:01 -05:00
Rob Rix
0e3b039992 Represent fixedness as a predicate. 2016-02-13 22:31:22 -05:00
Rob Rix
acae391e50 We don’t need to preserve the node name. 2016-02-13 21:27:27 -05:00
Rob Rix
11cbaf009c Use the Pair constructor to pattern match keys/values out. 2016-02-13 21:12:29 -05:00
Rob Rix
a174aebf4c Pairs are Fixed. 2016-02-13 21:02:10 -05:00
Rob Rix
90d7f7ad8f pair productions in JS → Pairs. 2016-02-13 21:02:04 -05:00
Rob Rix
ebc12c9919 Add a Pair constructor. 2016-02-13 21:01:52 -05:00
Rob Rix
52875fdd99 Silence a warning for the DiffOutput module. 2016-02-13 15:09:13 -08:00
Rob Rix
bda4df6731 Build threadily. 2016-02-13 14:16:49 -08:00
Rob Rix
54cf53e639 Add DiffOutput to the cabal file. 2016-02-13 12:41:07 -08:00
Rob Rix
3ae75b27c8 Spacing. 2016-02-12 15:33:58 -08:00
Josh Vera
87ff0f0762 Merge pull request #426 from github/language-specific-mapping
Add language specific category mappings
2016-02-11 12:17:07 -08:00
Matt Diephouse
ed9eec883b Update documentation 2016-02-11 12:09:18 -08:00
Matt Diephouse
4c6c9b4f72 Centralize logic in parserForType 2016-02-10 15:07:27 -08:00
Matt Diephouse
fa5bb25cf2 Add language-specific mappings 2016-02-10 14:59:48 -08:00
Matt Diephouse
7b9ac9334f Rename to defaultCategoryForNodeName 2016-02-10 14:57:01 -08:00
Matt Diephouse
bc95b7c86c Add an inner category mapping function 2016-02-10 14:56:21 -08:00
Matt Diephouse
b3458e8ac6 Just call it grammar 2016-02-10 14:53:16 -08:00
Matt Diephouse
17e74cf691 Move these functions inside 2016-02-10 14:52:19 -08:00
Matt Diephouse
b7355bf7e6 Add a bunch more languages
Even though they don’t do anything
2016-02-10 14:35:08 -08:00
Matt Diephouse
f45fd562a1 Move languageForType to Language 2016-02-10 14:32:11 -08:00
Matt Diephouse
4a5c844f34 Move Language to a separate module 2016-02-10 14:30:14 -08:00