use strings as values, with option to allow removing

This commit is contained in:
Dustin J. Mitchell
2019-12-29 11:50:05 -05:00
parent e5bd258e84
commit e83bdc28cd
6 changed files with 89 additions and 39 deletions

View File

@@ -20,7 +20,7 @@ fn operation_strategy() -> impl Strategy<Value = Operation> {
Operation::Update {
uuid,
property,
value: true.into(),
value: Some("true".into()),
timestamp: Utc::now(),
}
}),

View File

@@ -18,7 +18,7 @@ fn test_sync() {
db1.apply(Operation::Update {
uuid: uuid1,
property: "title".into(),
value: "my first task".into(),
value: Some("my first task".into()),
timestamp: Utc::now(),
});
@@ -27,7 +27,7 @@ fn test_sync() {
db2.apply(Operation::Update {
uuid: uuid2,
property: "title".into(),
value: "my second task".into(),
value: Some("my second task".into()),
timestamp: Utc::now(),
});
@@ -41,13 +41,13 @@ fn test_sync() {
db1.apply(Operation::Update {
uuid: uuid2,
property: "priority".into(),
value: "H".into(),
value: Some("H".into()),
timestamp: Utc::now(),
});
db2.apply(Operation::Update {
uuid: uuid2,
property: "project".into(),
value: "personal".into(),
value: Some("personal".into()),
timestamp: Utc::now(),
});