Compare commits

..

No commits in common. "28f6d2508f973de1103f56bdfc21f27354e37e47" and "7d5443dee6d36a4749bdbfc387f47431f2c4004b" have entirely different histories.

2 changed files with 11 additions and 16 deletions

View File

@ -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 upper: bool, inuse: bool, extra: String::default()
} }
fn usage(s: &str) -> ExitCode { fn usage(s: &str) -> ExitCode {

View File

@ -7,19 +7,14 @@
.PRAGMA: command_comment .PRAGMA: command_comment
.PHONY: stris_tests .PHONY: str_tests
stris_tests: stris_help stris_7 stris_b str_tests: str_help str_isalpha
.PHONY: stris_help .PHONY: str_help
stris_help: $(BIN)/stris str_help: $(BIN)/str
! $(BIN)/stris -h ! $(BIN)/str -h
.PHONY: stris_7 .PHONY: str_isalpha
stris_7: $(BIN)/stris str_isalpha: $(BIN)/str
$(BIN)/stris -7 !1Aa' ' $(BIN)/str isalpha c
! $(BIN)/stris -7 今日は ! $(BIN)/str isalpha 3
.PHONY: stris_b
stris_b: $(BIN)/stris
$(BIN)/stris -b "$(printf ' \t\v\r\n')"
! $(BIN)/stris -b !1Aa