add tests
This commit is contained in:
parent
a37c4c0f95
commit
5445891b8d
3 changed files with 56 additions and 27 deletions
27
src/main.rs
27
src/main.rs
|
@ -13,33 +13,8 @@ struct Cli {
|
|||
fn main() -> std::io::Result<()> {
|
||||
let args = Cli::parse();
|
||||
|
||||
let file = File::open(&args.path)?;
|
||||
// dbg!(take_while("01234hello", digit));
|
||||
|
||||
// dbg!(["hello", "goodbye", "myworld"].contains(&"myworlde"));
|
||||
// let mut word_gen = WordReader::new(file);
|
||||
// let mut word_count = 0;
|
||||
|
||||
// while word_gen.next_word().is_some() {
|
||||
// word_count += 1;
|
||||
// }
|
||||
// dbg!(word_count);
|
||||
|
||||
// let word1 = "hello world";
|
||||
// let word2 = "hello planet";
|
||||
// dbg!(&word1[0..6].len());
|
||||
let file = File::open(&args.path)?;
|
||||
parse_vcd(file);
|
||||
|
||||
// tag("my oh my");
|
||||
|
||||
|
||||
// loop {
|
||||
// let word = word_gen.next_word();
|
||||
// if word.is_none() {break};
|
||||
|
||||
// dbg!(word.unwrap());
|
||||
// }
|
||||
|
||||
|
||||
Ok(())
|
||||
}
|
Reference in a new issue