lean2/tests/lean
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
..
expensive chore(tests/lean): add 'expensive' file 2014-08-01 10:35:32 -07:00
hott chore(build): remove hott library directory, and move hott tests 2014-08-15 13:30:56 -07:00
interactive refactor(frontends/lean/scanner): remove dependency to seekg and unget 2014-09-18 15:24:48 -07:00
run feat(frontends/lean): split 'opaque_hint' command into 'opaque' and 'transparent' 2014-09-16 18:03:40 -07:00
slow refactor(library): rename algebra directory to struc, move categories.lean to algebra 2014-09-16 13:13:01 -07:00
alias.lean feat(frontends/lean): rename 'using' command to 'open' 2014-09-03 16:00:38 -07:00
alias.lean.expected.out feat(frontends/lean): add basic pretty printer 2014-07-09 01:12:36 -07:00
bug1.lean feat(frontends/lean/notation_cmd): make the notation for setting precedence uniform 2014-07-01 16:55:41 -07:00
bug1.lean.expected.out chore(kernel/error_msgs): change type mismatch error messages, closes #33 2014-08-07 16:18:40 -07:00
calc1.lean feat(frontends/lean/notation_cmd): make the notation for setting precedence uniform 2014-07-01 16:55:41 -07:00
calc1.lean.expected.out fix(frontends/lean/elaborator): use preprocessed expression when displaying errors 2014-07-29 14:25:50 -07:00
choice_expl.lean feat(frontends/lean): rename 'using' command to 'open' 2014-09-03 16:00:38 -07:00
choice_expl.lean.expected.out fix(frontends/lean): distribute '@' over choice 2014-08-27 16:31:18 -07:00
config.lean chore(tests/lean): reactivate config.lean 2014-07-10 23:32:23 +01:00
config.lean.expected.out chore(shell): re-activate .lean tests 2014-06-11 14:36:42 -07:00
crash.lean fix(tests/lean): adjust test to reflect recent changes 2014-08-26 09:12:18 -07:00
crash.lean.expected.out chore(kernel/error_msgs): change type mismatch error messages, closes #33 2014-08-07 16:18:40 -07:00
ctxopt.lean fix(frontends/lean/parser): configuration options defined in a context are transient, fixes #162 2014-09-09 11:02:54 -07:00
ctxopt.lean.expected.out fix(frontends/lean/parser): configuration options defined in a context are transient, fixes #162 2014-09-09 11:02:54 -07:00
empty.lean feat(frontends/lean): rename 'using' command to 'open' 2014-09-03 16:00:38 -07:00
empty.lean.expected.out feat(frontends/lean/placeholder_elaborator): perform class-instance resolution in a completely independent unifier object, it also triggers the resolution when expected type does not contain metavariables, closes #175, closes #173, closes #68 2014-09-11 14:49:35 -07:00
empty_thm.lean feat(frontends/lean): rename 'using' command to 'open' 2014-09-03 16:00:38 -07:00
empty_thm.lean.expected.out fix(frontends/lean/decl_cmds): improve error message for invalid end of theorem 2014-08-17 17:03:54 -07:00
have1.lean feat(frontends/lean): rename '[fact]' to '[visible]' 2014-09-08 07:47:42 -07:00
have1.lean.expected.out feat(frontends/lean): rename '[fact]' to '[visible]' 2014-09-08 07:47:42 -07:00
let1.lean feat(frontends/lean): rename '[fact]' to '[visible]' 2014-09-08 07:47:42 -07:00
let1.lean.expected.out fix(frontends/lean/pp): pretty print 'let-expressions', closes #87 2014-08-28 18:20:58 -07:00
let3.lean feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype 2014-09-04 17:26:36 -07:00
let3.lean.expected.out feat(frontends/lean/pp): improve let-expr pretty printer 2014-08-29 07:46:58 -07:00
let4.lean feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype 2014-09-04 17:26:36 -07:00
let4.lean.expected.out fix(frontends/let): let-expression pretty printer 2014-08-29 10:58:27 -07:00
num.lean feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype 2014-09-04 17:26:36 -07:00
num.lean.expected.out feat(frontends/lean/pp): pretty print numerals 2014-08-14 09:12:22 -07:00
pp.lean fix(frontends/lean/pp): bug when pretty printing binder information, fixes #73 2014-08-21 09:28:07 -07:00
pp.lean.expected.out feat(frontends/lean): remove restriction on implict arguments, add new test that demonstrates the new feature 2014-09-07 12:29:32 -07:00
protected.lean feat(frontends/lean): rename 'using' command to 'open' 2014-09-03 16:00:38 -07:00
protected.lean.expected.out feat(frontends/lean): add '[protected]' modifier 2014-09-03 15:01:13 -07:00
show1.lean feat(frontends/lean): rename '[fact]' to '[visible]' 2014-09-08 07:47:42 -07:00
show1.lean.expected.out feat(frontends/lean): rename '[fact]' to '[visible]' 2014-09-08 07:47:42 -07:00
showenv.l chore(*): cleanup lean builtin symbols, replace :: with _ 2014-01-09 08:33:52 -08:00
t1.lean refactor(*): rename Bool to Prop 2014-07-22 09:43:18 -07:00
t1.lean.expected.out refactor(*): rename Bool to Prop 2014-07-22 09:43:18 -07:00
t2.lean feat(frontends/lean/builtin_cmds): add simple 'print' command 2014-06-11 14:35:34 -07:00
t2.lean.expected.out feat(frontends/lean/builtin_cmds): add simple 'print' command 2014-06-11 14:35:34 -07:00
t3.lean feat(library/scoped_ext): force user to end a scope with an identifier matching the one used in beginning of scope, closes #30 2014-08-07 16:59:08 -07:00
t3.lean.expected.out feat(frontends/lean): add declaration to namespace without opening it, closes #161 2014-09-09 18:02:14 -07:00
t4.lean feat(library/scoped_ext): force user to end a scope with an identifier matching the one used in beginning of scope, closes #30 2014-08-07 16:59:08 -07:00
t4.lean.expected.out feat(frontends/lean): change the name resolution rules: when in a namespace N that defines C, then C always refers to N.C (i.e., it overrides any alias) 2014-08-18 18:58:50 -07:00
t5.lean feat(library/scoped_ext): force user to end a scope with an identifier matching the one used in beginning of scope, closes #30 2014-08-07 16:59:08 -07:00
t5.lean.expected.out feat(frontends/lean): add basic pretty printer 2014-07-09 01:12:36 -07:00
t6.lean refactor(*): rename Bool to Prop 2014-07-22 09:43:18 -07:00
t6.lean.expected.out refactor(*): rename Bool to Prop 2014-07-22 09:43:18 -07:00
t7.lean refactor(*): rename Bool to Prop 2014-07-22 09:43:18 -07:00
t7.lean.expected.out feat(frontends/lean): remove restriction on implict arguments, add new test that demonstrates the new feature 2014-09-07 12:29:32 -07:00
t9.lean feat(library/scoped_ext): force user to end a scope with an identifier matching the one used in beginning of scope, closes #30 2014-08-07 16:59:08 -07:00
t9.lean.expected.out fix(tests/lean): adjust tests expected output 2014-08-13 12:35:14 -07:00
t10.lean feat(frontends/lean/notation_cmd): make the notation for setting precedence uniform 2014-07-01 16:55:41 -07:00
t10.lean.expected.out chore(kernel/error_msgs): change type mismatch error messages, closes #33 2014-08-07 16:18:40 -07:00
t11.lean feat(frontends/lean/notation_cmd): add 'notation' command 2014-06-15 10:49:05 -07:00
t11.lean.expected.out feat(frontends/lean): add basic pretty printer 2014-07-09 01:12:36 -07:00
t12.lean feat(frontends/lean): add local notation support 2014-06-15 11:30:52 -07:00
t12.lean.expected.out feat(frontends/lean): add basic pretty printer 2014-07-09 01:12:36 -07:00
t13.lean feat(frontends/lean): local notation 'shadows' global one 2014-06-15 11:50:41 -07:00
t13.lean.expected.out feat(frontends/lean): add basic pretty printer 2014-07-09 01:12:36 -07:00
t14.lean feat(frontends/lean): rename 'using' command to 'open' 2014-09-03 16:00:38 -07:00
t14.lean.expected.out feat(frontends/lean): add 'export' command 2014-09-03 18:37:01 -07:00
test.sh refactor(library): remove unnecessary 'standard' subdirectory 2014-08-23 18:08:09 -07:00
test_single.sh refactor(library): remove unnecessary 'standard' subdirectory 2014-08-23 18:08:09 -07:00
test_single_pp.sh chore(tests): cleanup test scripts 2014-06-29 09:03:39 -07:00
uni_bug1.lean feat(frontends/lean): rename 'using' command to 'open' 2014-09-03 16:00:38 -07:00
uni_bug1.lean.expected.out fix(library/unifier): we should preprocess choice constraints before we start solving any constraint, fixes #85 2014-08-21 16:58:25 -07:00