Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Jun 4, 2024
1 parent 7e1493f commit bf8f6be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,55 +197,63 @@ mod tests_read_options {
input: None,
expected: ReadOptions {
follow: false,
tail: false,
last_id: None,
},
},
TestCase {
input: Some("foo=bar"),
expected: ReadOptions {
follow: false,
tail: false,
last_id: None,
},
},
TestCase {
input: Some("follow"),
expected: ReadOptions {
follow: true,
tail: false,
last_id: None,
},
},
TestCase {
input: Some("follow=1"),
expected: ReadOptions {
follow: true,
tail: false,
last_id: None,
},
},
TestCase {
input: Some("follow=yes"),
expected: ReadOptions {
follow: true,
tail: false,
last_id: None,
},
},
TestCase {
input: Some("follow=true"),
expected: ReadOptions {
follow: true,
tail: false,
last_id: None,
},
},
TestCase {
input: Some("last-id=03BIDZVKNOTGJPVUEW3K23G45"),
expected: ReadOptions {
follow: false,
tail: false,
last_id: Some("03BIDZVKNOTGJPVUEW3K23G45".parse().unwrap()),
},
},
TestCase {
input: Some("follow&last-id=03BIDZVKNOTGJPVUEW3K23G45"),
expected: ReadOptions {
follow: true,
tail: false,
last_id: Some("03BIDZVKNOTGJPVUEW3K23G45".parse().unwrap()),
},
},
Expand Down

0 comments on commit bf8f6be

Please sign in to comment.