mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
enshort var names
This commit is contained in:
parent
e94923ecb5
commit
845f3dc77e
1 changed files with 5 additions and 5 deletions
|
|
@ -66,11 +66,11 @@ impl Input {
|
||||||
#[test]
|
#[test]
|
||||||
fn test() {
|
fn test() {
|
||||||
fn t(source: &str, message: Option<&str>) {
|
fn t(source: &str, message: Option<&str>) {
|
||||||
let bytes = source.as_bytes();
|
let b = source.as_bytes();
|
||||||
let input = Input::from_utf8(bytes).unwrap();
|
let i = Input::from_utf8(b).unwrap();
|
||||||
assert_eq!(input.message(), message);
|
assert_eq!(i.message(), message);
|
||||||
assert_eq!(input.as_str(), source);
|
assert_eq!(i.as_str(), source);
|
||||||
assert_eq!(input.as_bytes(), bytes);
|
assert_eq!(i.as_bytes(), b);
|
||||||
}
|
}
|
||||||
// 10
|
// 10
|
||||||
t("10 Default\r\n", Some("Default"));
|
t("10 Default\r\n", Some("Default"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue