rust/src/libstd
bors 15d78fc398 auto merge of #5329 : wanderview/rust/std-getopts-opts_present, r=graydon
Currently the opts_present() function only checks to see if the option is
configured in the match, but doesn't actually check to see if the option
value has been set.  This means that opt_present('h') may return false while
opts_present([~'h']) returns true.

Add a test case to catch this condition and fix opts_present() to check
the value before returning true.

Note, there is another API difference between these two functions that this
does not address.  Currently if you pass a non-configured option to
opt_present() the program will fail!(), but opts_present() simply returns
false.  If it is acceptable to standardize on the fail!() then opts_present()
should probably be implemented in terms of the opt_present() function.
2013-03-12 09:21:56 -07:00
..
arc.rs libstd: Remove all newtype enums from std and core. 2013-03-11 09:35:59 -07:00
arena.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
base64.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
bigint.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
bitv.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
c_vec.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
cmp.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
comm.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
dbg.rs libstd: Remove extern mod { ... } from libstd. rs=deexterning 2013-03-07 22:32:52 -08:00
deque.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
ebml.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
flatpipes.rs Fix dvec-related fallout in tests 2013-03-08 09:56:52 -05:00
fun_treemap.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
future.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
getopts.rs auto merge of #5329 : wanderview/rust/std-getopts-opts_present, r=graydon 2013-03-12 09:21:56 -07:00
io_util.rs De-implicit-self libstd 2013-03-07 21:11:09 -05:00
json.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
list.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
md4.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
net_ip.rs core: Add rt mod and add the new scheduler code 2013-03-11 19:44:29 -07:00
net_tcp.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
net_url.rs test: Fix tests. 2013-03-07 22:37:58 -08:00
net.rs Add some extra description for std::net 2013-01-01 01:02:48 -05:00
oldmap.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
par.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
prettyprint.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
priority_queue.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
rl.rs libsyntax: Stop parsing bare functions in preparation for switching them over 2013-03-11 09:35:58 -07:00
rope.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
semver.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
serialize.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
sha1.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
smallintmap.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00
sort.rs std: Remove uses of DVec 2013-03-08 09:54:20 -05:00
stats.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
std.rc core: Add rt mod and add the new scheduler code 2013-03-11 19:44:29 -07:00
sync.rs libstd: Remove all newtype enums from std and core. 2013-03-11 09:35:59 -07:00
task_pool.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
tempfile.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
term.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
test.rs test: Fix tests. 2013-03-07 22:37:58 -08:00
time.rs test: Fix tests. 2013-03-07 22:37:58 -08:00
timer.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
treemap.rs treemap: fix a bug in the union implementation 2013-03-11 22:36:23 -04:00
unicode.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
uv_global_loop.rs Remove unused imports throughout src/ 2013-03-04 12:27:01 -05:00
uv_iotask.rs librustc: Convert all uses of assert over to fail_unless! 2013-03-07 22:37:57 -08:00
uv.rs core: Add rt mod and add the new scheduler code 2013-03-11 19:44:29 -07:00
workcache.rs librustc: Replace all uses of fn() with &fn(). rs=defun 2013-03-11 09:35:58 -07:00