about summary refs log tree commit diff
path: root/src/test/stdtest
AgeCommit message (Collapse)AuthorLines
2011-10-29stdlib: Add result::chain for composing resultsBrian Anderson-0/+18
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-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/+25
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-28Move to short kind kinds words in test suiteMarijn Haverbeke-1/+1
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-25Properly take mutable object fields into account during alias analysisMarijn Haverbeke-2/+5
Closes #1055
2011-10-25Update our code to new type parameter kind syntaxMarijn Haverbeke-4/+4
Closes #1067
2011-10-24work around bug when calling c-stack-cdecl fns from outside crateNiko Matsakis-1/+3
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 comm functions out of rust abiNiko Matsakis-1/+16
2011-10-20Restore broken tests in stdtest::testBrian Anderson-9/+6
2011-10-20Remove temporary fn# syntaxBrian Anderson-7/+7
2011-10-20Get windows working under the bare function regimeBrian Anderson-0/+16
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-4/+4
2011-10-20Drop the 2 from the spawn*2 functionsBrian Anderson-8/+8
Issue #1022
2011-10-20Convert the test runners to typesafe spawnBrian Anderson-4/+4
Issue #1022
2011-10-20Convert tests to use bare-fn spawnBrian Anderson-22/+17
Issue #1022
2011-10-18Add a math module to the standard libMarijn Haverbeke-0/+35
I need some rudimentary stdlib stuff for the tutorial. Closes #1042
2011-10-17[Lib] int.rs, uint.rs: added max_value, min_valueDavid Rajchenbach-Teller-0/+14
2011-10-12make compiler emit more than 1 error in the case of unsafeNiko Matsakis-2/+2
2011-10-12convert a few tests from unsafe fns to fns with unsafe bodiesNiko Matsakis-3/+3
2011-10-12continue to annotate functions as unsafe where neccessaryNiko Matsakis-6/+6
2011-10-12add unsafe tags into various points in the translation chainsNiko Matsakis-3/+3
and so forth
2011-10-12Ignore stdtest::os::test_setenv. Fails periodically on macBrian Anderson-0/+1
2011-10-12[Tests] added float testsDavid Rajchenbach-Teller-0/+20
2011-10-07Add pass-by-ref annotation to the tests to make them typecheckMarijn Haverbeke-31/+31
Issue #1008
2011-10-06Add std::str::containsBrian Anderson-0/+11
2011-10-05Fix some path handling in std::fs on win32Brian Anderson-0/+16
2011-10-04Add std::os::get_exe_pathBrian Anderson-0/+15
Need this to correctly determine sysroot in rustc
2011-10-04Hide unused variable warnings in stdtest::treemapBrian Anderson-2/+2
2011-10-04Add std::fs::normalizeBrian Anderson-0/+77
2011-10-04Add std::fs::splitBrian Anderson-0/+36
2011-09-23Add vec::filterJesse Ruderman-0/+7
2011-09-12Merge branch 'unwind'Brian Anderson-0/+7
Conflicts: src/comp/middle/trans.rs src/comp/middle/trans_build.rs src/lib/run_program.rs src/test/compiletest/runtest.rs
2011-09-12Pretty-print for new arg-mode syntaxMarijn Haverbeke-2/+2
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-43/+43
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-11Add a waitpid wrapper to std::run that interprets the exit status on unixBrian Anderson-0/+7
This makes the result of running a program a little more uniform between unix and windows
2011-09-02Reformat. Issue #855Brian Anderson-452/+409