aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Add simple hashmap tests exercising maps with str as key type, value type, ↵Roy Frostig2010-08-271-15/+85
| | | | and both.
* Pinching myself for certainty. ;pRoy Frostig2010-08-261-0/+4
|
* Test the hashmap more, exercising hash collision, element removal, and a ↵Roy Frostig2010-08-261-7/+129
| | | | forced rehashing that actually causes elements to change buckets. In the process, find a bug in hashmap's remove() and fix it.
* Make vreg constrs per-quad, regfence on nontrivial constrs, back out ↵Graydon Hoare2010-08-261-0/+10
| | | | workaround to _uint, add regression test. Closes #152.
* Add automatic parameter instantiation. Closes #45.Patrick Walton2010-08-261-0/+11
|
* When copying function values, null out the destination's binding iff the ↵Roy Frostig2010-08-261-14/+10
| | | | source's binding is null.
* Test the hashmap for growth and rehashing.Roy Frostig2010-08-261-2/+69
|
* Workaround issue #152 in _uint.next_power_of_twoRoy Frostig2010-08-261-0/+47
|
* Insure bools remain 0x1 or 0x0 by having boolean-NOT not just be a simple ↵Roy Frostig2010-08-251-0/+15
| | | | bit-NOT.
* Merge obj-drop and closure-drop code, handles freeing bound exteriors now.Graydon Hoare2010-08-251-0/+8
|
* Fix edge case in uint->string conversion.Graydon Hoare2010-08-251-0/+1
|
* Fix ghastly typestate bug breaking nested functions.Graydon Hoare2010-08-251-0/+1
|
* Implemented an lock free queue based on this paper ↵Michael Bebenita2010-08-245-0/+99
| | | | http://www.cs.rochester.edu/~scott/papers/1996_PODC_queues.pdf, the "lock free queue" we had before wasn't lock free at all.
* First successful hashmap lookups. Yay.Graydon Hoare2010-08-241-0/+4
|
* Fix mod-bug in std.map, work around bug in closure typaram capture, enable ↵Graydon Hoare2010-08-241-2/+9
| | | | insert-tests in lib-map.rs.
* Rename lib tests, enable lib-int.rs using _str.eq for now.Graydon Hoare2010-08-245-15/+15
|
* Merge remote branch 'tohava/master'Graydon Hoare2010-08-232-0/+17
|\ | | | | | | | | Conflicts: src/boot/fe/ast.ml
| * Modified parser to handle alt type andadded a few testsOr Brostovski2010-08-212-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | ast.ml - modified arm types for easier polymorphism - fixed a bug in fmt_type_arm dead.ml - modified arm types for easier polymorphism common.ml - added 'either' - added some useful auxiliary functions item.ml - modified arm code to be more polymorphic and handle both alt-tag and alt-type, also fixed the problematic case in bad-alt.rs Makefile - added XFAIL for new alt-type test bad-alt.rs - added test for invalid alt syntax alt-type-simple.rs - added simple test for alt type
* | Test the buffered reader and writer in _io.Roy Frostig2010-08-201-0/+26
| |
* | Support single-element append on vec, str. Closes #44.Graydon Hoare2010-08-201-0/+15
| |
* | Fix a bunch of typestate bugs in handling if and while statement wirings.Graydon Hoare2010-08-191-0/+4
| |
* | Un-xfailed working tests.Michael Bebenita2010-08-161-0/+5
| |
* | Uncomment recently-no-longer-failing std.deque tests. Add a few ↵Roy Frostig2010-08-131-30/+74
| | | | | | | | arbitrary-access checks.
* | A little tidy-up that should have gone in with ↵Roy Frostig2010-08-121-3/+0
| | | | | | | | 4e376852e709844d67f94430d9dc954d5be722b4.
* | Fix max_sz bug that ended up causing us to index incorrectly into a vec of ↵Roy Frostig2010-08-121-0/+18
| | | | | | | | tag types. Add a testcase.
* | Added support for task sleeping in the scheduler.Michael Bebenita2010-08-111-0/+6
| |
* | Ignore upcall_flush for channels that are disassociated from ports. This ↵Michael Bebenita2010-08-111-2/+1
| | | | | | | | makes task-comm-10 break a little less hard, but it still leaks because messages pending in the channel are never freed.
* | Added test cases.Michael Bebenita2010-08-113-0/+33
| |
* | Add native vec[u8] to str converter. Put in workaround for leak in str to ↵Roy Frostig2010-08-111-0/+41
| | | | | | | | vec[u8] converter. Add testcase exercising both. Drive-by fix a potential array-out-of-bounds write on rust_str buffers.
* | Always bounce mul/div/mod ops. Closes #131 harder.Graydon Hoare2010-08-101-7/+0
| |
* | Updated/added test cases.Michael Bebenita2010-08-0910-24/+112
|/
* Implement _str.len() to return the number of bytes, rename it to byte_len(),Jeffrey Yasskin2010-08-061-0/+16
| | | | and add a test.
* Add an int->str conversion function.Jeffrey Yasskin2010-08-061-0/+15
| | | | The test currently fails because string equality isn't implemented.
* Change the destructor-ordering test to use channels instead of a shared ↵Jeffrey Yasskin2010-08-061-39/+78
| | | | | | | mutable object. This test used to take advantage of a hole in the type system that allows objects with destructors to refer to stateful objects.
* Move 'as' precedence up to just above relational; support indexing str and ↵Graydon Hoare2010-08-051-0/+22
| | | | vec by all integral types. Closes #94.
* Add to std._io some formatter/type-specific-writer mechanism. Make a few ↵Roy Frostig2010-08-041-1/+5
| | | | type-specific buffered writers as wrappers of buf_writer.
* Fix pexp parser to do left-associativity, not right. Closes #130.Graydon Hoare2010-08-041-0/+4
|
* Kill the preallocator, install a sane replacement. Closes #131. And probably ↵Graydon Hoare2010-08-041-0/+7
| | | | a lot of others.
* More stdlib hashmap work. Add a simple test and XFAIL it due to a ↵Roy Frostig2010-08-031-0/+16
| | | | valgrind-spotted UMR.
* Address _vec.map allocation FIXME. Add test.Roy Frostig2010-08-031-0/+12
|
* Fix some naughtiness of handling newlines in bracequotes and multi-line ↵Graydon Hoare2010-08-031-0/+10
| | | | comments. Closes #142.
* Add tests and fix pexp bug. Closes #141.Graydon Hoare2010-08-032-0/+22
|
* Add a bunch of comm tests.Michael Bebenita2010-07-285-6/+162
|
* Another deque test commented out.Roy Frostig2010-07-281-1/+19
|
* Test the deque some more.Roy Frostig2010-07-281-0/+152
|
* Test the deque more and fix uncovered off-by-one bug.Roy Frostig2010-07-281-10/+37
|
* Get slots in trans_tag using Semant tables. Closes #133.Roy Frostig2010-07-281-0/+23
|
* Test the deque a bit. Give it a get-by-index method. Fix two uncovered ↵Roy Frostig2010-07-281-0/+17
| | | | state-calculation bugs --- one decently, the other with an ugly hack. Bug on the latter coming right up.
* Switch machine-type lexemes to use suffixes. Remove support for foo(bar) as ↵Graydon Hoare2010-07-275-20/+20
| | | | a cast notation. Closes #129.
* Distill semantics of use-def maps to fewer and more-obvious words.Graydon Hoare2010-07-271-0/+9
| | | | | | | - Remove redundant uses of 'resolve' and 'referent' in semant. - Use defn, defn_id, lval, lval_base more consistently. - Make associated query functions more consistent. - Closes #127.