mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
remove extra format
This commit is contained in:
parent
3de096cced
commit
71043bbf73
2 changed files with 2 additions and 4 deletions
|
|
@ -28,8 +28,7 @@ impl Success {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test() {
|
fn test() {
|
||||||
match Success::parse(format!("20 text/gemini; charset=utf-8; lang=en\r\n").as_bytes()).unwrap()
|
match Success::parse("20 text/gemini; charset=utf-8; lang=en\r\n".as_bytes()).unwrap() {
|
||||||
{
|
|
||||||
Success::Default(default) => {
|
Success::Default(default) => {
|
||||||
assert_eq!(default.header.mime().unwrap(), "text/gemini");
|
assert_eq!(default.header.mime().unwrap(), "text/gemini");
|
||||||
assert_eq!(default.content, None)
|
assert_eq!(default.content, None)
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,7 @@ impl Default {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test() {
|
fn test() {
|
||||||
let default =
|
let default = Default::parse("20 text/gemini; charset=utf-8; lang=en\r\n".as_bytes()).unwrap();
|
||||||
Default::parse(format!("20 text/gemini; charset=utf-8; lang=en\r\n").as_bytes()).unwrap();
|
|
||||||
assert_eq!(default.header.mime().unwrap(), "text/gemini");
|
assert_eq!(default.header.mime().unwrap(), "text/gemini");
|
||||||
assert_eq!(default.content, None)
|
assert_eq!(default.content, None)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue