about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2011-10-28stdlib: Add fs::splitextBrian Anderson-0/+56
Splits a path into the filename + extension
2011-10-28stdlib: Add vec::init. Returns all but the last element.Brian Anderson-0/+26
Per haskell, to go with head/tail, and last.
2011-10-28Add more isNaN testsMatt Brubeck-0/+8
2011-10-28Change behavior of float::nonpositive/nonnegativeMatt Brubeck-2/+2
Rather than being defined as !positive and !negative, these should act the same as negative and positive (respectively). The only effect of this change should be that all four functions will now return false for NaN.
2011-10-28Use IEEE 754 semantics for NaN (Issue #1084)Matt Brubeck-1/+99
2011-10-28+0.0 should be positive and -0.0 should be negative.Matt Brubeck-0/+19
2011-10-28stdlib: Make merge_sort take [mutable? T]Brian Anderson-0/+8
2011-10-28stdlib: Fix the list::foldl implementationBrian Anderson-1/+11
2011-10-28stdlib: Rename list::length to list::len to match vec::lenBrian Anderson-2/+2
2011-10-28stdlib: make list::from_vec take [mutable? T]Brian Anderson-0/+8
2011-10-28Make shared kind the default only for generic functionsMarijn Haverbeke-4/+4
You almost never want a function with pinned type params. For types, objects, resources, and tags, pinned types are actually often more sane. For most of these, shared rarely makes sense. Only tricky case is objs -- you'll have to think about the kinds you want there. Issue #1076
2011-10-28Move to short kind kinds words in test suiteMarijn Haverbeke-39/+39
Issue #1076
2011-10-27Remove whitespaceBrian Anderson-2/+2
2011-10-27Add std::vec::foldrBrian Anderson-0/+10
2011-10-27Add a test for std::vec::iter2Brian Anderson-0/+11
2011-10-27Add reverse iterators to std::vecBrian Anderson-0/+28
2011-10-27Implement vec::foldl without recursionBrian Anderson-0/+10
2011-10-27Add std::vec::iterBrian Anderson-0/+14
2011-10-27Make vec::reversed take [mutable? T]Brian Anderson-0/+7
2011-10-27Add tests for the 'as' (cast) operatorMatt Brubeck-0/+269
2011-10-25Properly take mutable object fields into account during alias analysisMarijn Haverbeke-11/+10
Closes #1055
2011-10-25Update our code to new type parameter kind syntaxMarijn Haverbeke-98/+102
Closes #1067
2011-10-25Step one towards new type param kind syntaxMarijn Haverbeke-2/+2
Issue #1067 Needs a snapshot to finalize.
2011-10-24Fix long linesBrian Anderson-1/+2
2011-10-24fix c-stack-cdecl when used w/ i64Niko Matsakis-0/+20
2011-10-24switch over sqrt from llvm to c-stack-cdecl, exposing a bug inNiko Matsakis-2/+2
the supported return types of upcall_c_stack
2011-10-24add implicit ctxNiko Matsakis-1/+1
2011-10-24move uses of rust ABI in tests to cdecl or c-stack-cdecl as apprNiko Matsakis-17/+26
Note: I found a bug in c-stack-cdecl which codes not permit such native functions to be used as values. I added an xfail-test (c-stack-as-value) documenting it.
2011-10-24work around bug when calling c-stack-cdecl fns from outside crateNiko Matsakis-1/+14
In the main test, I call the wrapper instead of the native fn, as intended. I also added an xfail-test that exercises the broken code path. Will file a bug. Description of the broken code path: The code path is that when we look up the external identifier we go through trans_external_path() -> type_of_ty_param_kinds_and_ty() -> type_of_fn_from_ty() -> type_of_fn(), and type_of_fn() adds a lot of external parameters. Problem is, I guess, that we don't pass the native ABI (or even the fact that it's a native function!), just the types and kinds of the parameters.
2011-10-24move sys fns into c-stack-cdecl and get_type_desc() into rustiNiko Matsakis-1/+1
there is one test failure, stdtest/sys.rs, which inexplicably (thus far) fails to compile because it invokes sys::rustrt::last_os_error() instead of invoking sys::last_os_error(). If stdtest/sys.rs is updated to invoke the wrapper, it passes. Still tracing the source of this error.
2011-10-24move comm functions out of rust abiNiko Matsakis-1/+16
2011-10-23Remove a test binary that shouldn't existBrian Anderson-0/+0
2011-10-21Cycle-collect objectsBrian Anderson-0/+13
2011-10-21Free vectors during cc sweepBrian Anderson-0/+10
2011-10-21Record the internal reference count of environment boxes. Closes #981Brian Anderson-0/+10
2011-10-21Remove some semicolons after block callsMarijn Haverbeke-27/+27
The remaining ones can be removed after the next snapshot. (Or we can let the next pretty-print pass take care of them.)
2011-10-21Remove remaining uses of iter and for-eachMarijn Haverbeke-182/+87
Issue #1056
2011-10-20Restore broken tests in stdtest::testBrian Anderson-9/+6
2011-10-20Remove temporary fn# syntaxBrian Anderson-93/+93
2011-10-20Get windows working under the bare function regimeBrian Anderson-0/+17
Had to ignore some task failure tests due to the current implementation of spawn which guarantees that there's always something in the spawned task that needs to be unwound. Fixed some win-specific build problems.
2011-10-20Make fn denote a bare function. Convert fn to fn@ as neededBrian Anderson-39/+43
2011-10-20Tweak typecheck to enforce covariance on higher-order function argumentsBrian Anderson-0/+14
2011-10-20Give subtype relationships to function typesBrian Anderson-0/+7
2011-10-20Bare functions can coerce to blocksBrian Anderson-0/+7
2011-10-20Bare functions can coerce to shared closuresBrian Anderson-0/+7
2011-10-20Drop the 2 from the spawn*2 functionsBrian Anderson-92/+92
Issue #1022
2011-10-20Convert the test runners to typesafe spawnBrian Anderson-4/+4
Issue #1022
2011-10-20XFAIL task-perf-word-count-genericBrian Anderson-0/+2
This can't be done with bare functions. Issue #1022
2011-10-20Convert tests to use bare-fn spawnBrian Anderson-214/+214
Issue #1022
2011-10-20Un-xfail-fast some testsBrian Anderson-4/+0
check-fast is more reliable now.