-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lets_fucking_gooooooooo,the_special_iterator_is_fine_AF
- Loading branch information
1 parent
bef28f0
commit 512942f
Showing
3 changed files
with
56 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ rand = "*" | |
rayon = "*" | ||
|
||
[profile.dev] | ||
opt-level = 3 | ||
opt-level = 0 | ||
|
||
[profile.release] | ||
opt-level = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,28 @@ | ||
#[cfg(test)] | ||
|
||
#[test] | ||
|
||
#[test] | ||
fn divide_n_print() { | ||
use super::tokenisation::SpecialStr; | ||
|
||
let input = "**Tha&khva a#% vhbavbevb{}pp'llop'."; | ||
let input = "happy bday. .i."; | ||
let new_one = SpecialStr::new(&input); | ||
|
||
let temp: Vec<&str> = new_one.into_iter().collect(); | ||
print!("{:?}", temp); | ||
//assert_eq!(temp , vec![]); | ||
} | ||
|
||
|
||
fn divide_n_print_2() { | ||
use super::tokenisation::SpecialStr; | ||
|
||
let input = "hvcvk (vuk == gvyv'' jvv( hvktvk"; | ||
let new_one = SpecialStr::new(&input); | ||
|
||
let temp: Vec<&str> = new_one.into_iter().collect(); | ||
|
||
assert_eq!(temp , vec!["Tha", "khva", "a", "vhbavbevb", "pp", "llop"]); | ||
println!("{:?}", temp); | ||
|
||
//assert_eq!(temp , vec!["hvcvk", "vuk", "gvyv", "jvv", "hvktvk"]); | ||
} |
512942f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the modification in the given commit is pretty much like perfectly what i want to acheive by the iterator implementation