Skip to content

Instantly share code, notes, and snippets.

@ErichBSchulz
Created August 3, 2011 09:31
Show Gist options
  • Save ErichBSchulz/1122253 to your computer and use it in GitHub Desktop.
Save ErichBSchulz/1122253 to your computer and use it in GitHub Desktop.
test cases
Plan for testing:
- insert contact A
- insert contact B
- read contact B -> get contact B
- automerge (A, B) -> get expected SUCCESS result
- read contact B -> get nothing back
- read contact A -> get back merged A and B, store as $A
- insert contact C (different in some important way from A)
- read contact C -> store as $C
- automerge (A, C) -> get expected FAIL result
- read contact C -> verify C = $C (ie no change)
- read contact A -> verify A = $A (ie no change)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment