Compare commits
2 Commits
7d5443dee6
...
28f6d2508f
Author | SHA1 | Date | |
---|---|---|---|
28f6d2508f | |||
cbf5032a22 |
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
env::args,
|
env::args,
|
||||||
process::ExitCode
|
process::ExitCode,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern crate getopt;
|
extern crate getopt;
|
||||||
@ -30,7 +30,7 @@ use sysexits::EX_USAGE;
|
|||||||
|
|
||||||
struct Reqs {
|
struct Reqs {
|
||||||
ascii: bool, blank: bool, cntrl: bool, digit: bool, lower: bool,
|
ascii: bool, blank: bool, cntrl: bool, digit: bool, lower: bool,
|
||||||
upper: bool, inuse: bool, extra: String::default()
|
upper: bool, inuse: bool, extra: String
|
||||||
}
|
}
|
||||||
|
|
||||||
fn usage(s: &str) -> ExitCode {
|
fn usage(s: &str) -> ExitCode {
|
||||||
|
@ -7,14 +7,19 @@
|
|||||||
|
|
||||||
.PRAGMA: command_comment
|
.PRAGMA: command_comment
|
||||||
|
|
||||||
.PHONY: str_tests
|
.PHONY: stris_tests
|
||||||
str_tests: str_help str_isalpha
|
stris_tests: stris_help stris_7 stris_b
|
||||||
|
|
||||||
.PHONY: str_help
|
.PHONY: stris_help
|
||||||
str_help: $(BIN)/str
|
stris_help: $(BIN)/stris
|
||||||
! $(BIN)/str -h
|
! $(BIN)/stris -h
|
||||||
|
|
||||||
.PHONY: str_isalpha
|
.PHONY: stris_7
|
||||||
str_isalpha: $(BIN)/str
|
stris_7: $(BIN)/stris
|
||||||
$(BIN)/str isalpha c
|
$(BIN)/stris -7 !1Aa' '
|
||||||
! $(BIN)/str isalpha 3
|
! $(BIN)/stris -7 今日は
|
||||||
|
|
||||||
|
.PHONY: stris_b
|
||||||
|
stris_b: $(BIN)/stris
|
||||||
|
$(BIN)/stris -b "$(printf ' \t\v\r\n')"
|
||||||
|
! $(BIN)/stris -b !1Aa
|
Loading…
Reference in New Issue
Block a user