<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coq/test-suite/unit-tests, branch master</title>
<subtitle>The formal proof system</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/'/>
<entry>
<title>Change OUnit package name to ounit2.</title>
<updated>2020-08-18T10:39:02+00:00</updated>
<author>
<name>Tanaka Akira</name>
</author>
<published>2020-08-07T14:35:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=2431bb8aa58f572104683491bb7c534ebaaf45d8'/>
<id>2431bb8aa58f572104683491bb7c534ebaaf45d8</id>
<content type='text'>
OUnit package name is changed from "oUnit" to "ounit2":
https://github.com/gildor478/ounit#user-content-transition-to-ounit2

This change follows it and fixes
a failure, `ocamlfind: Package oUnit not found`,
at `make test-suite` and `dune build`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OUnit package name is changed from "oUnit" to "ounit2":
https://github.com/gildor478/ounit#user-content-transition-to-ounit2

This change follows it and fixes
a failure, `ocamlfind: Package oUnit not found`,
at `make test-suite` and `dune build`.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[test] unit tests for ide/coq_lex.ml" + makefile support</title>
<updated>2020-05-17T11:22:09+00:00</updated>
<author>
<name>Gaëtan Gilbert</name>
</author>
<published>2020-05-10T19:39:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=7da245bd2db7496628645a43965e5df966234fd5'/>
<id>7da245bd2db7496628645a43965e5df966234fd5</id>
<content type='text'>
This reverts commits 71ea3ca8b4d3a6fa6b005e48ff7586176b06259e and
0976a670cf853c9bc61b3eee6dceae4a429e066f.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commits 71ea3ca8b4d3a6fa6b005e48ff7586176b06259e and
0976a670cf853c9bc61b3eee6dceae4a429e066f.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix proof_diffs_test.ml</title>
<updated>2020-05-17T11:22:09+00:00</updated>
<author>
<name>Gaëtan Gilbert</name>
</author>
<published>2020-05-10T19:38:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=4c69c4a870f5ef340536798dcdf1025e61a375f9'/>
<id>4c69c4a870f5ef340536798dcdf1025e61a375f9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[test] unit tests for ide/coq_lex.ml</title>
<updated>2019-06-19T11:27:37+00:00</updated>
<author>
<name>Enrico Tassi</name>
</author>
<published>2019-06-19T08:49:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=71ea3ca8b4d3a6fa6b005e48ff7586176b06259e'/>
<id>71ea3ca8b4d3a6fa6b005e48ff7586176b06259e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make prvect tail recursive (fix #9355)</title>
<updated>2019-01-22T13:09:34+00:00</updated>
<author>
<name>Gaëtan Gilbert</name>
</author>
<published>2019-01-19T22:16:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=4baa950b79589c6617770b5612bd082fde9c9255'/>
<id>4baa950b79589c6617770b5612bd082fde9c9255</id>
<content type='text'>
Using a unit test as it's way faster than messing with universes.

You can test with universes by
~~~coq
Set Universe Polymorphism.
Definition x1@{i} := True.
Definition x2 := x1 -&gt; x1.
Definition x3 := x2 -&gt; x2.
Definition x4 := x3 -&gt; x3.
Definition x5 := x4 -&gt; x4.
Definition x6 := x5 -&gt; x5.
Definition x7 := x6 -&gt; x6.
Definition x8 := x7 -&gt; x7.
Definition x9 := x8 -&gt; x8.
Definition x10 := x9 -&gt; x9.
Definition x11 := x10 -&gt; x10.
Definition x12 := x11 -&gt; x11.
Definition x13 := x12 -&gt; x12.
Definition x14 := x13 -&gt; x13.
Definition x15 := x14 -&gt; x14.
Definition x16 := x15 -&gt; x15.
Definition x17 := x16 -&gt; x16.
Definition x18 := x17 -&gt; x17.
Definition x19 := x18 -&gt; x18.

About x19. (* 262144 universes *)
~~~
Note on my machine `About x18.` did not overflow even before this
commit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using a unit test as it's way faster than messing with universes.

You can test with universes by
~~~coq
Set Universe Polymorphism.
Definition x1@{i} := True.
Definition x2 := x1 -&gt; x1.
Definition x3 := x2 -&gt; x2.
Definition x4 := x3 -&gt; x3.
Definition x5 := x4 -&gt; x4.
Definition x6 := x5 -&gt; x5.
Definition x7 := x6 -&gt; x6.
Definition x8 := x7 -&gt; x7.
Definition x9 := x8 -&gt; x8.
Definition x10 := x9 -&gt; x9.
Definition x11 := x10 -&gt; x10.
Definition x12 := x11 -&gt; x11.
Definition x13 := x12 -&gt; x12.
Definition x14 := x13 -&gt; x13.
Definition x15 := x14 -&gt; x14.
Definition x16 := x15 -&gt; x15.
Definition x17 := x16 -&gt; x16.
Definition x18 := x17 -&gt; x17.
Definition x19 := x18 -&gt; x18.

About x19. (* 262144 universes *)
~~~
Note on my machine `About x18.` did not overflow even before this
commit.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make diffs work for more input strings</title>
<updated>2018-12-20T21:01:46+00:00</updated>
<author>
<name>Jim Fehrle</name>
</author>
<published>2018-10-07T22:14:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=70a139733dfaa42d665a85736ee4324d926723ed'/>
<id>70a139733dfaa42d665a85736ee4324d926723ed</id>
<content type='text'>
Diff code uses the lexer to recognize tokens in the inputs, which can be
Pp.t's or strings.  To add the highlights in the Pp.t, the diff code
matches characters in the input to characters in the tokens.  Current
code fails for inputs containing quote marks or "(*" because the quote
marks and comments don't appear in the tokens.  This commit adds a "diff
mode" to the lexer to return those characters, making the diff routine
more robust.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Diff code uses the lexer to recognize tokens in the inputs, which can be
Pp.t's or strings.  To add the highlights in the Pp.t, the diff code
matches characters in the input to characters in the tokens.  Current
code fails for inputs containing quote marks or "(*" because the quote
marks and comments don't appear in the tokens.  This commit adds a "diff
mode" to the lexer to return those characters, making the diff routine
more robust.
</pre>
</div>
</content>
</entry>
<entry>
<title>Get hyps and goal the same way Printer does; don't omit info</title>
<updated>2018-11-14T20:19:14+00:00</updated>
<author>
<name>Jim Fehrle</name>
</author>
<published>2018-11-07T08:23:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=a7121ed7ba1a5a55845b5ffa4846b8aa0e293e5d'/>
<id>a7121ed7ba1a5a55845b5ffa4846b8aa0e293e5d</id>
<content type='text'>
Allow for new goals that don't map to old goals
Include background_goals in all_goals return value
Fix incorrect change to raw diffs in shorten_diff_span
Fixes #8922
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow for new goals that don't map to old goals
Include background_goals in all_goals return value
Fix incorrect change to raw diffs in shorten_diff_span
Fixes #8922
</pre>
</div>
</content>
</entry>
<entry>
<title>Make tokenize_string an optional parameter for diff methods in pp_diffs.</title>
<updated>2018-07-24T03:13:29+00:00</updated>
<author>
<name>Jim Fehrle</name>
</author>
<published>2018-07-01T20:02:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=97069f69ab3a58cc4ccbaa1a835912c6c31dde4d'/>
<id>97069f69ab3a58cc4ccbaa1a835912c6c31dde4d</id>
<content type='text'>
Remove forward reference to lexer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove forward reference to lexer.
</pre>
</div>
</content>
</entry>
<entry>
<title>Displays the differences between successive proof steps in coqtop and CoqIDE.</title>
<updated>2018-07-24T03:13:19+00:00</updated>
<author>
<name>Jim Fehrle</name>
</author>
<published>2018-04-09T20:16:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=8de046df97b1ea391a3f3879c20c74d53c9fba48'/>
<id>8de046df97b1ea391a3f3879c20c74d53c9fba48</id>
<content type='text'>
Proof General requires minor changes to make the diffs visible, but this code
shouldn't break the existing version of PG.

Diffs are computed for the hypotheses and conclusion of the first goal between
the old and new proofs. Strings are split into tokens using the Coq lexer,
then the list of tokens are diffed using the Myers algorithm.  A fixup routine
(Pp_diff.shorten_diff_span) shortens the span of the diff result in some cases.

Diffs can be enabled with the Coq commmand "Set Diffs on|off|removed." or
"-diffs on|off|removed" on the OS command line.  The "on" option shows only the
new item with added text, while "removed" shows each modified item twice--once
with the old value showing removed text and once with the new value showing
added text.

The highlights use 4 tags to specify the color and underline/strikeout.
These are "diffs.added", "diffs.removed", "diffs.added.bg" and "diffs.removed.bg".
The first two are for added or removed text; the last two are for
unmodified parts of a modified item.

Diffs that span multiple strings in the Pp are tagged with "start.diff.*" and
"end.diff.*", but only on the first and last strings of the span.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Proof General requires minor changes to make the diffs visible, but this code
shouldn't break the existing version of PG.

Diffs are computed for the hypotheses and conclusion of the first goal between
the old and new proofs. Strings are split into tokens using the Coq lexer,
then the list of tokens are diffed using the Myers algorithm.  A fixup routine
(Pp_diff.shorten_diff_span) shortens the span of the diff result in some cases.

Diffs can be enabled with the Coq commmand "Set Diffs on|off|removed." or
"-diffs on|off|removed" on the OS command line.  The "on" option shows only the
new item with added text, while "removed" shows each modified item twice--once
with the old value showing removed text and once with the new value showing
added text.

The highlights use 4 tags to specify the color and underline/strikeout.
These are "diffs.added", "diffs.removed", "diffs.added.bg" and "diffs.removed.bg".
The first two are for added or removed text; the last two are for
unmodified parts of a modified item.

Diffs that span multiple strings in the Pp are tagged with "start.diff.*" and
"end.diff.*", but only on the first and last strings of the span.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make the out_channel for the log file accessible so tests can write to it (e.g. for debugging)</title>
<updated>2018-07-23T15:25:11+00:00</updated>
<author>
<name>Jim Fehrle</name>
</author>
<published>2018-05-18T19:03:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/coq/commit/?id=a6131723faa8699e485a88fae8cc2323b82a8461'/>
<id>a6131723faa8699e485a88fae8cc2323b82a8461</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
