joshvera
|
b124b461c0
|
Empty diffs have empty hunks
|
2016-03-01 17:13:53 -05:00 |
|
Rob Rix
|
2f47270400
|
Add a split diff fixture.
|
2016-03-01 16:32:08 -05:00 |
|
Rob Rix
|
d4efc9e7d5
|
Remove a diff in a format we no longer support.
|
2016-03-01 16:32:02 -05:00 |
|
Rob Rix
|
a34250e619
|
Bump the fixtures again.
|
2016-03-01 14:36:50 -05:00 |
|
Rob Rix
|
ab77d09bb6
|
Bump all the fixtures.
|
2016-03-01 14:30:33 -05:00 |
|
Rob Rix
|
e894d63a6c
|
Merge branch 'master' into forward-compatible-rendering
# Conflicts:
# src/DiffOutput.hs
# src/Renderer/Split.hs
# test/CorpusSpec.hs
|
2016-03-01 12:34:40 -05:00 |
|
Rob Rix
|
435dde0888
|
Bump the fixtures again.
|
2016-02-29 22:05:25 -05:00 |
|
Rob Rix
|
8e5bb19ec2
|
More fixture bumping.
|
2016-02-29 21:53:38 -05:00 |
|
Rob Rix
|
9260faf3af
|
Update the fixtures.
|
2016-02-29 21:46:30 -05:00 |
|
Rob Rix
|
65ee064cda
|
Bump the fixtures.
|
2016-02-29 21:22:17 -05:00 |
|
Rob Rix
|
e3ac671f1b
|
Bump the fixtures.
|
2016-02-29 20:53:36 -05:00 |
|
Rob Rix
|
d92bab31fd
|
Generate the JSON with aeson instead.
|
2016-02-29 20:52:30 -05:00 |
|
Rob Rix
|
ae149c94ff
|
Use runBothWith to tidy up a few computations.
|
2016-02-29 19:43:57 -05:00 |
|
Rob Rix
|
7548e148dc
|
Rename runLeft/runRight to fst/snd.
|
2016-02-29 19:39:04 -05:00 |
|
Rob Rix
|
fe6c42da4c
|
Add newline at eof & no newline at eof test cases.
|
2016-02-29 18:13:23 -05:00 |
|
Rob Rix
|
39b86b2886
|
Add a test case for dictionary.js in json format.
|
2016-02-29 18:12:08 -05:00 |
|
Rob Rix
|
46b85eea05
|
Merge branch 'master' into forward-compatible-rendering
|
2016-02-29 14:11:14 -05:00 |
|
Rob Rix
|
ac39e73691
|
Line’s Monoid instance will do just fine here.
|
2016-02-29 10:38:39 -05:00 |
|
Rob Rix
|
665ffa4133
|
We don’t need to destructure the Rows in the append test.
|
2016-02-29 10:33:29 -05:00 |
|
Rob Rix
|
df2b684229
|
Simplify how we compute combineIntoLeaves.
|
2016-02-29 10:31:53 -05:00 |
|
Rob Rix
|
7048a61660
|
Define leafWIthRangesInSources over Both.
|
2016-02-29 10:30:33 -05:00 |
|
Rob Rix
|
c889174aee
|
Use Both to represent Diff annotations.
|
2016-02-29 10:12:34 -05:00 |
|
Rob Rix
|
0628793ab4
|
Use the Applicative instance in a test.
|
2016-02-29 09:29:50 -05:00 |
|
Rob Rix
|
a8efcb539a
|
Row wraps a Both.
|
2016-02-29 09:22:52 -05:00 |
|
Rob Rix
|
1abab2bbce
|
adjoinRowsBy applies Both MaybeOpen tests.
|
2016-02-29 08:55:30 -05:00 |
|
joshvera
|
2c4acfb14f
|
Disambiguate the tests.
|
2016-02-29 07:45:24 -05:00 |
|
Rob Rix
|
9f09b39b98
|
100% undiluted pure mempty.
|
2016-02-28 22:21:17 -05:00 |
|
Rob Rix
|
a6c1ec1ddf
|
Curry.
|
2016-02-28 22:18:44 -05:00 |
|
Rob Rix
|
3cf56fb635
|
Map the corpus tests over Both input files.
|
2016-02-28 22:13:32 -05:00 |
|
Rob Rix
|
0d77576a52
|
Represent categories in Both.
|
2016-02-28 22:10:02 -05:00 |
|
Rob Rix
|
81a1a14d4c
|
Represent the input Ranges in Both.
|
2016-02-28 22:01:21 -05:00 |
|
Rob Rix
|
863251183f
|
Represent alignment sources in Both.
|
2016-02-28 21:43:47 -05:00 |
|
Rob Rix
|
0626228917
|
Data.Bifunctor.Join is actually Data.Functor.Both.
|
2016-02-28 21:29:59 -05:00 |
|
Rob Rix
|
ea87105b4b
|
Use Join for sources everywhere.
|
2016-02-28 21:10:56 -05:00 |
|
Rob Rix
|
eef4da87b4
|
Extract the paths into a binding.
|
2016-02-28 21:08:07 -05:00 |
|
Rob Rix
|
d6fb451ebd
|
Rename SplitSpec to AlignmentSpec.
|
2016-02-28 14:05:19 -05:00 |
|
Rob Rix
|
e31edf6b3c
|
Move the alignment bits of Split into the Alignment module.
|
2016-02-28 14:01:56 -05:00 |
|
Rob Rix
|
1ba036b495
|
Merge branch 'master' into forward-compatible-rendering
# Conflicts:
# src/DiffOutput.hs
# test/CorpusSpec.hs
# tools/semantic-difftool/src/Main.hs
|
2016-02-28 13:26:50 -05:00 |
|
Rob Rix
|
95e0371ea1
|
Remove a redundant import.
|
2016-02-26 19:05:42 -05:00 |
|
Rob Rix
|
1d3ae0b902
|
Remove unified diffs from the corpus.
|
2016-02-26 19:04:47 -05:00 |
|
Rob Rix
|
2da6a3527b
|
Test JSON.
|
2016-02-25 14:19:33 -07:00 |
|
Rob Rix
|
fcd8571274
|
Move Unified under Renderer.
|
2016-02-25 13:50:35 -07:00 |
|
Rob Rix
|
f8214a9872
|
Move Split under Renderer.
|
2016-02-25 13:32:39 -07:00 |
|
Rob Rix
|
f44455c372
|
Rename Renderer.PatchOutput to Renderer.Patch.
|
2016-02-25 13:20:25 -07:00 |
|
Rob Rix
|
c710b3c713
|
Move PatchOutput into Renderer.
|
2016-02-25 13:14:56 -07:00 |
|
joshvera
|
35355a2e91
|
Expect diff headers
|
2016-02-22 14:04:39 -07:00 |
|
joshvera
|
d7db984616
|
Merge remote-tracking branch 'origin/master' into git-patch-modes
|
2016-02-22 13:54:32 -07:00 |
|
Rob Rix
|
0ed730eac2
|
Correct the patch header.
|
2016-02-22 13:31:18 -07:00 |
|
Rob Rix
|
43445e565c
|
Merge branch 'master' into test-patch-output
|
2016-02-22 13:22:17 -07:00 |
|
Rob Rix
|
88693119e0
|
Re-un-enable the crashers-todo tests.
|
2016-02-22 13:21:23 -07:00 |
|
Rob Rix
|
66b3a18ac0
|
Enable crashers-todo.
|
2016-02-22 13:19:58 -07:00 |
|
Rob Rix
|
7e6a01627b
|
Add tests with a newline at EOF.
|
2016-02-22 13:02:01 -07:00 |
|
Rob Rix
|
3094e62066
|
Add tests without a newline at EOF.
|
2016-02-22 13:00:05 -07:00 |
|
Rob Rix
|
9873e4bf8d
|
Pass the matcher into testDiff.
|
2016-02-22 12:57:16 -07:00 |
|
Rob Rix
|
236f3b30f8
|
Pass the curried matcher in.
|
2016-02-22 12:38:49 -07:00 |
|
Matt Diephouse
|
f09676d6b4
|
Do ALL the tests in parallel
|
2016-02-17 17:44:37 -05:00 |
|
Matt Diephouse
|
8f4699cade
|
Do these in parallel
|
2016-02-17 17:43:59 -05:00 |
|
Matt Diephouse
|
565c7b6ca8
|
Add todo tests
|
2016-02-17 17:42:27 -05:00 |
|
Matt Diephouse
|
d84ad8ef15
|
Add a fixed crasher
|
2016-02-17 17:18:52 -05:00 |
|
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 |
|
Matt Diephouse
|
f743eef743
|
Add a test for word diffs
|
2016-02-16 16:43:37 -05:00 |
|
Matt Diephouse
|
c8edf79abb
|
Add a spec for test files
|
2016-02-16 16:38:31 -05:00 |
|
Matt Diephouse
|
ac053940fe
|
Add a spec for on-disk tests
|
2016-02-16 12:33:41 -05:00 |
|
joshvera
|
e008fda7d1
|
output the right paths in patch
|
2016-02-10 11:32:26 -08:00 |
|
Matt Diephouse
|
110149673a
|
Add staticgories to ArbitraryTerm.hs
|
2016-02-09 11:43:13 -08:00 |
|
Matt Diephouse
|
170b7c6e1e
|
Rename Categorizable module to Category
|
2016-02-04 13:59:33 -05:00 |
|
Josh Vera
|
768ca30a7b
|
Merge pull request #385 from github/data-dot-ordered-map
Move OrderedMap into Data.
|
2016-01-06 13:09:22 -05:00 |
|
Rob Rix
|
7af5a4876a
|
Move OrderedMap into Data.
|
2016-01-06 11:56:58 -05:00 |
|
Rob Rix
|
924087d59a
|
Manual spec inclusion.
|
2016-01-05 11:27:37 -05:00 |
|
Rob Rix
|
271d47f8f4
|
Remove the main function from TermSpec.
|
2016-01-05 11:26:49 -05:00 |
|
Rob Rix
|
801d0e1d54
|
Remove some redundant imports from TermSpec.
|
2016-01-05 11:26:43 -05:00 |
|
Rob Rix
|
12fc39be6e
|
Apply some linter suggestions re: do .
|
2016-01-05 10:41:40 -05:00 |
|
Rob Rix
|
21b537da5c
|
Apply some linter suggestions re: parens.
|
2016-01-05 10:41:26 -05:00 |
|
Rob Rix
|
0590af9bc9
|
Allow all of the tests to run in parallel.
|
2016-01-05 10:38:51 -05:00 |
|
Rob Rix
|
09459a3421
|
Merge branch 'master' into patch
|
2015-12-30 18:55:42 -05:00 |
|
Rob Rix
|
8b4d158f4c
|
Pass sources as a pair.
|
2015-12-30 15:31:27 -05:00 |
|
Rob Rix
|
4e96478cbb
|
Merge branch 'diff-performance' into patch
# Conflicts:
# src/Split.hs
|
2015-12-30 12:17:33 -05:00 |
|
joshvera
|
c69cd164cd
|
Merge remote-tracking branch 'origin/master' into use-text
|
2015-12-30 12:07:52 -05:00 |
|
Rob Rix
|
96f98b6bed
|
Revert "Generate syntax with String leaves."
This reverts commit ba92cc702f8f4585fbcb8eb61a2567b3c336afd4.
|
2015-12-30 10:39:28 -05:00 |
|
Rob Rix
|
b54c4c8265
|
Bool, not ().
|
2015-12-30 10:33:49 -05:00 |
|
Rob Rix
|
ad31669f07
|
Revert "Generalize openMaybe."
This reverts commit 9a056744cfb33ac0454d07fd89356fb620b7cb50.
|
2015-12-30 10:33:28 -05:00 |
|
Rob Rix
|
3e3c7be082
|
Test openLineBy over openMaybe .
|
2015-12-30 10:31:30 -05:00 |
|
Rob Rix
|
d5d8095a4e
|
pure .
|
2015-12-30 10:28:40 -05:00 |
|
Rob Rix
|
494d7f83c8
|
Spacing.
|
2015-12-30 10:28:16 -05:00 |
|
Rob Rix
|
093700c571
|
Generalize openMaybe.
|
2015-12-30 10:27:45 -05:00 |
|
Rob Rix
|
6dfb6b3ff7
|
Wrap terms in Identity.
|
2015-12-30 10:26:40 -05:00 |
|
joshvera
|
28e5b60bbc
|
fix tests
|
2015-12-29 15:24:13 -05:00 |
|
joshvera
|
a3051c531d
|
Merge remote-tracking branch 'origin/master' into use-text
|
2015-12-29 15:13:57 -05:00 |
|
Rob Rix
|
7342c93038
|
Revert "Extend Row’s Arbitrary instance to two parameters."
This reverts commit 8d48b02705633ee97aa894b1ca5b3af043b3422c.
|
2015-12-29 14:58:06 -05:00 |
|
Rob Rix
|
ee3c3c8bd0
|
Extend Row’s Arbitrary instance to two parameters.
|
2015-12-29 14:42:35 -05:00 |
|
Rob Rix
|
5416edbcc4
|
Generate syntax with String leaves.
This reverts commit 3c4056c094f88daf1b6aa5c7f41799aa595ccdce.
|
2015-12-29 10:21:09 -05:00 |
|
Rob Rix
|
c9ab8a131d
|
Correct the tests.
|
2015-12-24 16:38:50 -05:00 |
|
Rob Rix
|
0866ef52bd
|
Merge branch 'diff-performance' into patch
|
2015-12-24 16:33:24 -05:00 |
|
Rob Rix
|
7a49534034
|
Use makeLine as appropriate in the tests.
|
2015-12-24 10:44:40 -05:00 |
|
Rob Rix
|
d355f268e6
|
Hide ++ in the tests.
|
2015-12-23 23:44:02 -05:00 |
|
Rob Rix
|
69aadf4ec5
|
Rename makeSource → fromList .
|
2015-12-23 23:37:51 -05:00 |
|
Rob Rix
|
b138864068
|
Correct the tests.
|
2015-12-23 23:36:49 -05:00 |
|
Rob Rix
|
0bb6462fad
|
Rename unSource to toList.
|
2015-12-23 23:26:37 -05:00 |
|
Rob Rix
|
e9449fccb8
|
Move Source & its API to the Source module.
|
2015-12-23 22:38:20 -05:00 |
|
Rob Rix
|
d7ad161495
|
Build leaves from the sources on either side.
|
2015-12-23 22:34:27 -05:00 |
|
Rob Rix
|
2e823392d1
|
Filter the strings in the sources.
|
2015-12-23 22:30:11 -05:00 |
|
Rob Rix
|
f1ab391423
|
arbitraryLeaf produces a Source.
|
2015-12-23 22:27:48 -05:00 |
|
Rob Rix
|
5e8e9bda5f
|
Construct leaves with subsources.
|
2015-12-23 22:27:42 -05:00 |
|
Rob Rix
|
7b6bc623c9
|
Get some more total ranges from sources.
|
2015-12-23 22:27:30 -05:00 |
|
Rob Rix
|
adc850f328
|
Unwrap the source before filtering.
|
2015-12-23 22:27:21 -05:00 |
|
Rob Rix
|
75ead61274
|
Move getTotalRange into the tests.
It’s kind of a lie.
|
2015-12-23 22:20:35 -05:00 |
|
Rob Rix
|
99b04b4038
|
isOnSingleLine takes a Source.
|
2015-12-23 22:19:29 -05:00 |
|
Rob Rix
|
e0560d272b
|
Use getTotalRange in the tests.
|
2015-12-23 22:18:10 -05:00 |
|
Rob Rix
|
60aecae119
|
Add an Arbitrary instance over Source.
|
2015-12-23 22:18:01 -05:00 |
|
Rob Rix
|
4219f438be
|
Make sources in the openLineBy tests.
|
2015-12-23 22:10:30 -05:00 |
|
Rob Rix
|
6049a99ed7
|
Merge branch 'split-refactoring' into patch
|
2015-12-22 19:01:50 -05:00 |
|
Rob Rix
|
e2cc92bdf7
|
Move Row into the Row module.
|
2015-12-22 17:24:58 -05:00 |
|
Rob Rix
|
4c395ff1d1
|
Import the Line module in the tests.
|
2015-12-22 17:22:07 -05:00 |
|
Rob Rix
|
1621dca3bc
|
Remove the offset functions.
|
2015-12-22 17:12:08 -05:00 |
|
Rob Rix
|
08d03e933c
|
Remove the term construction helpers.
|
2015-12-22 17:11:49 -05:00 |
|
Rob Rix
|
ddf4ccd141
|
Remove the row text functions.
|
2015-12-22 17:10:57 -05:00 |
|
Rob Rix
|
3d1fb64cbc
|
Remove span .
|
2015-12-22 17:10:49 -05:00 |
|
Rob Rix
|
52a057b577
|
Remove the Arbitrary instance for HTML.
|
2015-12-22 17:08:50 -05:00 |
|
Rob Rix
|
6663dfe87b
|
openMaybe is defined over Maybe Bool.
|
2015-12-22 17:08:02 -05:00 |
|
Rob Rix
|
b121ee54e3
|
Remove openString.
|
2015-12-22 17:06:55 -05:00 |
|
Rob Rix
|
821ee2e792
|
Test the identity case via openMaybe.
|
2015-12-22 17:06:51 -05:00 |
|
Rob Rix
|
cf00dcd95e
|
Test appending onto open rows via openMaybe.
|
2015-12-22 17:06:45 -05:00 |
|
Rob Rix
|
cfee3a90fc
|
Test promoting onto open lines via openMaybe.
|
2015-12-22 17:06:09 -05:00 |
|
Rob Rix
|
8f34f04dae
|
Test not promoting onto closed lines via openMaybe.
|
2015-12-22 17:05:35 -05:00 |
|
Rob Rix
|
7b2ac76422
|
Test not appending onto closed rows by means of openMaybe.
This is much faster.
|
2015-12-22 17:05:02 -05:00 |
|
Rob Rix
|
208df10e1a
|
Add an openMaybe function for quicker open/closed tests.
|
2015-12-22 17:02:34 -05:00 |
|
Rob Rix
|
c643f2ed58
|
Test not appending onto closed rows over strings.
|
2015-12-22 16:56:22 -05:00 |
|
Rob Rix
|
8c71fff97a
|
Test appending onto open rows over strings.
|
2015-12-22 16:55:53 -05:00 |
|
Rob Rix
|
cfa82876c1
|
Generalize the isOpen predicate.
|
2015-12-22 16:55:18 -05:00 |
|
Rob Rix
|
631e572ab3
|
Generalize the isClosed predicate.
|
2015-12-22 16:55:13 -05:00 |
|
Rob Rix
|
8599fd46d9
|
Test adjoinRowsBy using openString.
|
2015-12-22 16:52:36 -05:00 |
|
Rob Rix
|
3adfd06d5a
|
Add an open string selector.
|
2015-12-22 16:52:20 -05:00 |
|
Rob Rix
|
bbbd874722
|
Remove the openLineBy tests using openElement.
|
2015-12-22 16:35:23 -05:00 |
|
Rob Rix
|
bd3bee668a
|
Generalize the splitTermByLines test across arbitrary strings.
|
2015-12-22 16:34:32 -05:00 |
|
Rob Rix
|
ebb843ef4d
|
Remove the termToLines test.
|
2015-12-22 16:29:14 -05:00 |
|
Rob Rix
|
c41364a743
|
Remove the remaining annotatedToRows tests.
|
2015-12-22 16:28:49 -05:00 |
|
Rob Rix
|
9a496a6be5
|
Populate the indexed term with leaves.
|
2015-12-22 16:26:24 -05:00 |
|
Rob Rix
|
1b90bc0291
|
Add a function to construct a leaf from a pair of line ranges.
|
2015-12-22 16:26:07 -05:00 |
|
Rob Rix
|
6510e95526
|
Test that we always produce the maximum of the lines in two sources.
|
2015-12-22 16:10:05 -05:00 |
|
Rob Rix
|
603e750d67
|
Remove an unused let binding.
|
2015-12-22 15:55:59 -05:00 |
|
Rob Rix
|
ef027dba36
|
Test that we preserve the line counts in equal diffs.
|
2015-12-22 15:48:37 -05:00 |
|
Rob Rix
|
9e6f415dc6
|
Port the single-line empty unchanged indexed diff test to splitAnnotatedByLines.
|
2015-12-22 15:38:18 -05:00 |
|
Rob Rix
|
b3c0802e55
|
Use the abstracted predicate.
|
2015-12-22 14:44:57 -05:00 |
|
Rob Rix
|
780c8247a3
|
Abstract out a predicate for terms on a single line.
|
2015-12-22 14:44:49 -05:00 |
|
Rob Rix
|
b970f02c1d
|
Don’t offset arbitrary leaves.
|
2015-12-22 13:38:44 -05:00 |
|
Rob Rix
|
bf05d63401
|
Rename the tripling function.
|
2015-12-22 13:31:31 -05:00 |
|
Rob Rix
|
5a552dc97c
|
Simplify the single-line unchanged leaf property.
|
2015-12-22 13:29:36 -05:00 |
|
Rob Rix
|
0422098f9b
|
arbitraryLeaf doesn’t construct terms.
|
2015-12-22 13:29:12 -05:00 |
|
Rob Rix
|
aaaf8f27a4
|
Stub in a function to make arbitrary leaves & sources in some type.
|
2015-12-22 13:16:03 -05:00 |
|
Rob Rix
|
867772d749
|
Remove the corresponding annotatedToRows test.
|
2015-12-22 13:04:39 -05:00 |
|
Rob Rix
|
2a8a879590
|
Remove the hard-coded test.
|
2015-12-22 13:04:33 -05:00 |
|
Rob Rix
|
c4da8fb229
|
Generalize the single-line leaf test to arbitrary sources.
|
2015-12-22 13:04:07 -05:00 |
|
Rob Rix
|
690966086e
|
Remove some redundant parentheses.
|
2015-12-22 12:54:01 -05:00 |
|
Rob Rix
|
38a317156b
|
Move arbitrary term generation into its own module.
|
2015-12-22 12:53:31 -05:00 |
|
Rob Rix
|
fbe899be21
|
Remove the changed flag from Line .
|
2015-12-22 12:47:12 -05:00 |
|
Rob Rix
|
3b3a62a777
|
Test that single-line leaves are split correctly.
|
2015-12-22 12:39:54 -05:00 |
|
Rob Rix
|
597fe099bc
|
Pass an additional open predicate to adjoinRowsBy.
|
2015-12-21 23:09:14 -05:00 |
|
Rob Rix
|
2c3ff54dc6
|
Assertive assertions.
|
2015-12-21 20:23:56 -05:00 |
|
Rob Rix
|
1f6440e7a1
|
Test that openTerm returns Just for open terms.
|
2015-12-21 20:08:05 -05:00 |
|
Rob Rix
|
41e03beb85
|
Tweak the test name’s wording.
|
2015-12-21 20:07:53 -05:00 |
|
Rob Rix
|
7ee39b2d40
|
Test that openTerm classifies strings ending with newlines as closed.
|
2015-12-21 20:06:19 -05:00 |
|
Rob Rix
|
d1abf65cdd
|
Test openLineBy over openTerm.
|
2015-12-21 20:04:05 -05:00 |
|
Rob Rix
|
60edd3b19a
|
Omit the categories in the splitTermByLines test.
|
2015-12-21 20:02:17 -05:00 |
|
Rob Rix
|
b45e10eb92
|
Port the termToLines test to splitTermByLines.
|
2015-12-21 19:54:40 -05:00 |
|
Rob Rix
|
61067a6f2a
|
Remove the ranges from the annotatedToRows tests.
|
2015-12-21 19:44:07 -05:00 |
|
Rob Rix
|
cbc1240946
|
Avoid needless $s.
|
2015-12-21 13:03:08 -05:00 |
|
Rob Rix
|
671904cf61
|
Remove redundant parentheses.
|
2015-12-21 13:01:46 -05:00 |
|
Rob Rix
|
c0a566be4a
|
Eta-reduce the definition of unchanged .
|
2015-12-21 13:01:38 -05:00 |
|
Rob Rix
|
3c85d4d0af
|
Use Data.Maybe’s isJust & isNothing to test for open elements.
|
2015-12-21 13:00:46 -05:00 |
|
Rob Rix
|
64362581c4
|
Rename adjoinBy → adjoinRowsBy.
|
2015-12-21 12:57:50 -05:00 |
|
Rob Rix
|
d4cfb276a4
|
Rename adjoin2By → adjoinBy.
|
2015-12-21 12:57:11 -05:00 |
|
Rob Rix
|
446383565c
|
Test adjoin2By.
|
2015-12-21 10:04:47 -05:00 |
|
Rob Rix
|
9404ee75c3
|
Test openLineBy, not openLine.
|
2015-12-21 10:01:00 -05:00 |
|
Rob Rix
|
c9f13f2f41
|
Define the arbitrary instances for Row and Line in terms of an Arbitrary type a.
|
2015-12-21 09:58:20 -05:00 |
|
Rob Rix
|
7964727da6
|
Add a type parameter to Line.
|
2015-12-18 16:41:50 -05:00 |
|
Rob Rix
|
eb89e828bb
|
Add a type parameter to Row.
Currently it’s a phantom type.
|
2015-12-18 16:37:16 -05:00 |
|
joshvera
|
9617e7a842
|
import Data.Text.Arbitrary in SplitSpec/TermSpec
|
2015-12-18 15:03:54 -05:00 |
|
joshvera
|
c5e214a5d2
|
Use Text.mempty in RangeSpec
|
2015-12-18 15:03:36 -05:00 |
|
Rob Rix
|
e8f57d6b27
|
Remove the redundant test.
|
2015-12-18 13:58:13 -05:00 |
|
Rob Rix
|
60edfc661a
|
Test promotion through empty lines.
|
2015-12-18 13:58:02 -05:00 |
|
Rob Rix
|
de456dfe49
|
Remove the redundant test.
|
2015-12-18 13:40:54 -05:00 |
|
Rob Rix
|
e1cc29e032
|
Don’t expect empty rows to be elided.
|
2015-12-18 13:27:16 -05:00 |
|
Rob Rix
|
963887a115
|
Test the property that we don’t promote through empty lines onto closed lines.
This is falsified by empty row elision.
|
2015-12-18 13:27:03 -05:00 |
|
Rob Rix
|
7e67a6a490
|
Remove a redundant test.
|
2015-12-18 13:22:30 -05:00 |
|
Rob Rix
|
0b4aeb06af
|
Remove the redundant test.
|
2015-12-18 13:19:51 -05:00 |
|
Rob Rix
|
d699adc714
|
Test the property that closed rows are closed.
|
2015-12-18 13:19:40 -05:00 |
|
Rob Rix
|
c02bd6e11a
|
EmptyLines are not closed.
|
2015-12-18 13:19:05 -05:00 |
|
Rob Rix
|
8bb258a8e6
|
Add a predicate for closed rows.
|
2015-12-18 13:17:03 -05:00 |
|
Rob Rix
|
8f2473fd48
|
Remove a redundant test.
|
2015-12-18 13:05:08 -05:00 |
|
Rob Rix
|
6ffe3719d0
|
Reformat.
|
2015-12-18 13:04:52 -05:00 |
|
Rob Rix
|
595293e1a5
|
Actually test the property.
|
2015-12-18 13:02:46 -05:00 |
|
Rob Rix
|
e49715dd86
|
Use forAll to stub in the test.
|
2015-12-18 12:28:57 -05:00 |
|
Rob Rix
|
a549354030
|
Stub in a property test of appending onto open rows.
|
2015-12-18 12:11:01 -05:00 |
|
Rob Rix
|
013ed0e227
|
Add a predicate for open rows.
|
2015-12-18 12:10:46 -05:00 |
|
Rob Rix
|
d1020f4ca3
|
Tweak some test names.
|
2015-12-18 11:05:41 -05:00 |
|
Rob Rix
|
099096b409
|
Spacing.
|
2015-12-18 11:04:49 -05:00 |
|
Rob Rix
|
dd924c68dd
|
Test that empty diffs have no hunks.
|
2015-12-18 09:49:33 -05:00 |
|
Rob Rix
|
bf8de73934
|
Stub in a PatchOutput spec.
|
2015-12-18 09:49:21 -05:00 |
|
Josh Vera
|
a124943822
|
Update Spec.hs
|
2015-12-17 13:35:18 -05:00 |
|
joshvera
|
09faaf9b4e
|
clean up
|
2015-12-17 13:10:12 -05:00 |
|
joshvera
|
0223de4145
|
Enable autodiscovery of tests
Also splits up tests into different specs
|
2015-12-17 13:08:47 -05:00 |
|
Rob Rix
|
b4bfac45ce
|
Correct the tests.
|
2015-12-16 23:27:00 -05:00 |
|
joshvera
|
fe38ebe548
|
Test unicode equivalent terms are replacements
|
2015-12-16 14:18:09 -05:00 |
|
joshvera
|
c71c9fd4fd
|
Write out code points in test
|
2015-12-16 13:09:07 -05:00 |
|
joshvera
|
b4fb04fccc
|
Test equivalent precomposed/decomposed unicode is not equal
|
2015-12-16 11:58:52 -05:00 |
|
Rob Rix
|
9604238c02
|
Test the asymmetry of intersectionWith .
|
2015-12-14 18:20:21 -05:00 |
|
Rob Rix
|
a357c155f8
|
Test the ordering of keys .
|
2015-12-14 18:18:40 -05:00 |
|
Rob Rix
|
ae298f287a
|
Test that unions does not duplicate elements.
|
2015-12-14 18:17:48 -05:00 |
|
Rob Rix
|
b2cceea842
|
Rename the unions test.
|
2015-12-14 18:16:22 -05:00 |
|
Rob Rix
|
e9cac45f65
|
Test union asymmetry.
|
2015-12-14 18:15:56 -05:00 |
|
Rob Rix
|
79d5e38b26
|
Use distinct elements in a and b .
|
2015-12-14 18:15:14 -05:00 |
|
Rob Rix
|
4fd12e7223
|
Test unions .
|
2015-12-14 18:13:19 -05:00 |
|
Rob Rix
|
62a4327bda
|
Test the asymmetry of difference .
|
2015-12-14 18:11:42 -05:00 |
|
Rob Rix
|
1d7dced61f
|
Test keys .
|
2015-12-14 18:10:20 -05:00 |
|
Rob Rix
|
2ee77fe490
|
Import OrderedMap instead of Data.Map.
|
2015-12-14 17:57:24 -05:00 |
|
Rob Rix
|
e96a77aa1a
|
Test the intersection.
|
2015-12-14 17:54:22 -05:00 |
|
Rob Rix
|
aeb99b54a0
|
Test the union.
|
2015-12-14 17:53:05 -05:00 |
|
Rob Rix
|
ab6658edc8
|
Extract the fixtures.
|
2015-12-14 17:51:15 -05:00 |
|
Rob Rix
|
26400a24a8
|
Import & run the OrderedMapSpec spec.
|
2015-12-14 17:49:40 -05:00 |
|
Rob Rix
|
0401bcb83d
|
Rename the spec function.
|
2015-12-14 17:48:59 -05:00 |
|
Rob Rix
|
7f488bb351
|
Knock the nesting out.
|
2015-12-14 17:47:42 -05:00 |
|
Rob Rix
|
2dbf0fc7c3
|
OrderedMapSpec imports hspec.
|
2015-12-14 17:44:42 -05:00 |
|
Rob Rix
|
aebf6dd488
|
Add a spec testing difference .
|
2015-12-14 17:43:49 -05:00 |
|
Rob Rix
|
205a885305
|
Stub in an OrderedMapSpec module.
|
2015-12-14 17:42:57 -05:00 |
|
Rob Rix
|
40f6df8b5d
|
Merge branch 'master' into ordered-map
|
2015-12-14 17:35:08 -05:00 |
|
Josh Vera
|
6850b402d4
|
Merge pull request #326 from github/post-process-leaf-nodes-in-terms
Post process leaf nodes in terms
|
2015-12-14 17:20:16 -05:00 |
|
Rob Rix
|
86cf5df9e7
|
Merge pull request #327 from github/remove-info-line-range
Remove line range from Info
|
2015-12-14 17:20:12 -05:00 |
|
Rob Rix
|
2cdbc9ad5e
|
Update the tests to point at OrderedMap.
|
2015-12-14 17:15:44 -05:00 |
|
joshvera
|
f5dadfd964
|
fix tests
|
2015-12-14 16:09:12 -05:00 |
|
Rob Rix
|
cded6c0d7d
|
Get the substrings out at the same time as computing the ranges.
|
2015-12-14 15:37:30 -05:00 |
|
Rob Rix
|
fdb1a6a9f7
|
Correct the tests.
|
2015-12-14 15:33:16 -05:00 |
|
Rob Rix
|
06a826c5f0
|
Merge branch 'master' into post-process-leaf-nodes-in-terms
|
2015-12-14 15:28:04 -05:00 |
|
Rob Rix
|
9d61286d81
|
Take only maxLength elements for keyed nodes.
|
2015-12-14 15:18:56 -05:00 |
|
Rob Rix
|
32d460bce7
|
Rename n to maxDepth .
|
2015-12-14 15:18:16 -05:00 |
|
Rob Rix
|
686325bf4c
|
Rename m to maxLength .
|
2015-12-14 15:17:26 -05:00 |
|
Rob Rix
|
5c90ecde8e
|
Use the cube of the max length, not the square.
I.e. shrink the produces lists.
|
2015-12-14 15:15:56 -05:00 |
|
Rob Rix
|
33c0dacd55
|
Take m, not n.
|
2015-12-14 15:13:32 -05:00 |
|
Rob Rix
|
2f726d4ba6
|
🔥 ArbitraryDiff .
|
2015-12-14 15:12:07 -05:00 |
|
Rob Rix
|
a93908a5f8
|
Test the reflexivity of Diff equality by generating a pair of terms and diffing them.
|
2015-12-14 15:11:59 -05:00 |
|