doc: add some note for win32 module test
This commit is contained in:
@@ -318,12 +318,17 @@ fn test_verb() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_cmd_line() {
|
fn test_cmd_line() {
|
||||||
|
// TODO:
|
||||||
|
// Remove error tester dead_code attribute,
|
||||||
|
// improve ok tester and add more error tests
|
||||||
|
// once we finish a complete CmdLine.
|
||||||
fn ok_tester(s: &str) {
|
fn ok_tester(s: &str) {
|
||||||
let rv = CmdLine::from_str(s);
|
let rv = CmdLine::from_str(s);
|
||||||
assert!(rv.is_ok());
|
assert!(rv.is_ok());
|
||||||
// let rv = rv.unwrap();
|
// let rv = rv.unwrap();
|
||||||
// assert_eq!(s, rv.full());
|
// assert_eq!(s, rv.full());
|
||||||
}
|
}
|
||||||
|
#[allow(dead_code)]
|
||||||
fn err_tester(s: &str) {
|
fn err_tester(s: &str) {
|
||||||
let rv = CmdLine::from_str(s);
|
let rv = CmdLine::from_str(s);
|
||||||
assert!(rv.is_err());
|
assert!(rv.is_err());
|
||||||
|
|||||||
Reference in New Issue
Block a user