summaryrefslogtreecommitdiffstats
path: root/src/tui/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/app.rs')
-rw-r--r--src/tui/app.rs54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/tui/app.rs b/src/tui/app.rs
index ad1a1ea..06ac090 100644
--- a/src/tui/app.rs
+++ b/src/tui/app.rs
@@ -129,57 +129,3 @@ fn pretty_score(score: i32) -> StyledString {
// TODO see cursive/examples/src/bin/select_test.rs for how to test the interface!
// maybe see if we can conditionally run when --nocapture is passed?
-#[cfg(test)]
-mod tests {
- use super::*;
- use crate::stackexchange::{Answer, Question};
- #[test]
- fn test_app() {
- let ans_body = r#"
-Also try the iter:
-1. asdf
-2. asfd
-0. asdfa sfsdf
-
-but
-
- cargo build --example stderr
-
-and then you run it with
-
- cd "$(target/debug/examples/stderr)"
- cd `(target/debug/examples/stderr)`
-
-what the application prints on stdout is used as argument to `cd`.
-
-Try it out.
-
-Hit any key to quit this screen:
-
-* **1** will print `..`
-* **2** will print `/`
-* **3** will print `~`
-* or anything else to print this text (so that you may copy-paste)
-"#;
- let qs = vec![Question {
- id: 42,
- score: 323,
- title: "How do I exit Vim?".to_string(),
- body: "yo this be my problem dawg but don't say **do** `this`".to_string(),
- answers: vec![
- Answer {
- id: 422,
- score: -4,
- body: ans_body.to_string(),
- is_accepted: false,
- },
- Answer {
- id: 423,
- score: 23,
- body: "this is a *good* answer tho".to_string(),
- is_accepted: true,
- },
- ],
- }];
- }
-}