lean2/tests/lean/interactive
Leonardo de Moura b3e05a2fe9 refactor(frontends/lean/scanner): remove dependency to seekg and unget
methods

It is not safe to use seekg for textual files. Here is a fragment from a
C++ manual:

seekg() and seekp()

This pair of functions serve respectively to change the position of stream pointers get and put. Both functions are overloaded with two different prototypes:

     seekg ( pos_type position );
     seekp ( pos_type position );

Using this prototype the stream pointer is changed to an absolute position from the beginning of the file. The type required is the same as that returned by functions tellg and tellp.

      seekg ( off_type offset, seekdir direction );
      seekp ( off_type offset, seekdir direction );

Using this prototype, an offset from a concrete point determined by
parameter direction can be specified. It can be:

          ios::beg	offset specified from the beginning of the stream
          ios::cur	offset specified from the current position of the stream pointer
          ios::end	offset specified from the end of the stream

The values of both stream pointers get and put are counted in different
ways for text files than for binary files, since in text mode files some
modifications to the appearance of some special characters can
occur. For that reason it is advisable to use only the first prototype
of seekg and seekp with files opened in text mode and always use
non-modified values returned by tellg or tellp. With binary files, you
can freely use all the implementations for these functions. They should
not have any unexpected behavior.
2014-09-18 15:24:48 -07:00
..
alias.input test(tests/lean/interactive): test for issue #193 2014-09-15 16:07:23 -07:00
alias.input.expected.out test(tests/lean/interactive): test for issue #193 2014-09-15 16:07:23 -07:00
class_bug.lean feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype 2014-09-04 17:26:36 -07:00
coe.input refactor(library): replace decidable_eq with abbreviation 2014-09-09 16:09:05 -07:00
coe.input.expected.out refactor(library): replace decidable_eq with abbreviation 2014-09-09 16:09:05 -07:00
coe.lean refactor(library): replace decidable_eq with abbreviation 2014-09-09 16:09:05 -07:00
in1.input refactor(frontends/lean/info_manager): to allow cache to be used when producing info data, fixes #37, closes #45 2014-08-17 12:16:32 -07:00
in1.input.expected.out fix(tests/lean/interactive): interactive tests expected output, they must include the new '-- BEGINWAIT' messages 2014-09-09 09:47:19 -07:00
in2.input refactor(frontends/lean/info_manager): store environment+options in the info_manager, fixes #96 2014-08-26 18:07:09 -07:00
in2.input.expected.out fix(tests/lean/interactive): interactive tests expected output, they must include the new '-- BEGINWAIT' messages 2014-09-09 09:47:19 -07:00
in4.input test(tests/lean/interactive): add --server test 2014-08-28 07:41:38 -07:00
in4.input.expected.out refactor(frontends/lean/scanner): remove dependency to seekg and unget 2014-09-18 15:24:48 -07:00
in5.input fix(frontends/lean): wrong displayed type in proof with multiple sorry's, fixes #112 2014-08-29 14:32:53 -07:00
in5.input.expected.out fix(tests/lean/interactive): interactive tests expected output, they must include the new '-- BEGINWAIT' messages 2014-09-09 09:47:19 -07:00
num2.input fix(frontends/lean/info_manager): bug in save_environment_options, 2014-09-15 16:05:17 -07:00
num2.input.expected.out fix(frontends/lean/info_manager): bug in save_environment_options, 2014-09-15 16:05:17 -07:00
num2.lean fix(tests/lean/interactive): adjust test to library reorg 2014-09-16 13:16:46 -07:00
optstack.input fix(frontends/lean/parser): segmentation fault after REPLACE, fixes #172 2014-09-10 08:39:39 -07:00
optstack.input.expected.out fix(frontends/lean/parser): segmentation fault after REPLACE, fixes #172 2014-09-10 08:39:39 -07:00
simple.lean chore(*): minimize dependencies on tests 2014-08-24 19:58:48 -07:00
simple3.lean test(tests/lean/interactive): add --server test 2014-08-28 07:41:38 -07:00
sorry2.lean feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype 2014-09-04 17:26:36 -07:00
sync.input feat(frontends/lean/server): add SYNC command, closes #199 2014-09-16 18:42:34 -07:00
sync.input.expected.out feat(frontends/lean/server): add SYNC command, closes #199 2014-09-16 18:42:34 -07:00
t4.input fix(frontends/lean/elaborator): do not expose type information produced when synthesizing class instances 2014-08-22 17:07:12 -07:00
t4.input.expected.out fix(tests/lean/interactive): interactive tests expected output, they must include the new '-- BEGINWAIT' messages 2014-09-09 09:47:19 -07:00
test_single.sh refactor(library): remove unnecessary 'standard' subdirectory 2014-08-23 18:08:09 -07:00
whnfinst.lean fix(frontends/lean/parser): segmentation fault after REPLACE, fixes #172 2014-09-10 08:39:39 -07:00