remove taskwarrior compatibility stuff

This commit is contained in:
Dustin J. Mitchell
2020-11-21 17:52:09 -05:00
parent ae93d91b6e
commit 3ddaff07ca
7 changed files with 0 additions and 919 deletions

View File

@@ -1,20 +0,0 @@
use chrono::prelude::*;
use std::fs::File;
use std::io::BufReader;
#[test]
fn test_parse() {
let filename = "tests/data/tdb2-test.data";
let file = File::open(filename).unwrap();
let tasks = taskwarrior_rust::parse(filename, BufReader::new(file)).unwrap();
assert_eq!(
tasks[0].description,
"https://phabricator.services.example.com/D7364 [taskgraph] Download debian packages"
);
assert_eq!(tasks[0].entry, Utc.timestamp(1538520624, 0));
assert_eq!(tasks[0].udas.get("phabricatorid").unwrap(), "D7364");
assert_eq!(tasks[1].annotations[0].entry, Utc.timestamp(1541461824, 0));
assert!(tasks[1].annotations[0]
.description
.starts_with("https://github.com",));
}