Even Bigger S: Better String Literal
Everyone is tired of typing "foo"._string() and String::from("bar") stuff. Maybe you've tried Big S, a helpful crate with only one funcion in one line. With "Big S" you can do this:
assert_eq!
Cool, but things can be better, with Even Bigger S and also only one macro S.
Usage
empty string:
- Big S:
S("") - Even Bigger S:
S!()
string:
- Big S:
S("foo") - Even Bigger S:
S!("foo")
concat string:
This one is new.
- common:
"foo".to_string() + "bar" - Big S:
S("foo") + "bar" - Even Bigger S:
S!("foo" "bar")
If you want to separate strings with spaces, you can do:
assert_eq!;
This one is especially helpful with an extensive string literal:
assert_eq!