StringCase check string case
(t *testing.T)
| 56 | |
| 57 | //StringCase check string case |
| 58 | func (ac *AutoClient) StringCase(t *testing.T) { |
| 59 | ac.es.SetNxEqual(t, "key-setx", "v1") |
| 60 | ac.es.SetExEqual(t, "key-set", "v2", 1) |
| 61 | ac.es.PSetexEqual(t, "key-set", "v3", 3000) |
| 62 | |
| 63 | ac.es.SetEqual(t, "key-set", "value") |
| 64 | ac.es.AppendEqual(t, "key-set", "value") |
| 65 | ac.es.AppendEqual(t, "append", "value") |
| 66 | ac.es.StrlenEqual(t, "key-set") |
| 67 | // ac.es.MSetNxEqual(t, 1, "key-setm", "value", "key-set", "value") |
| 68 | |
| 69 | ac.es.MSetEqual(t, "key-set", "value") |
| 70 | ac.es.MGetEqual(t, "key-not-exist") |
| 71 | ac.es.IncrEqual(t, "incr") |
| 72 | ac.es.IncrEqual(t, "incr") |
| 73 | ac.es.IncrByEqual(t, "incr", 19) |
| 74 | ac.es.DecrEqual(t, "incr") |
| 75 | ac.es.DecrByEqual(t, "incr", 19) |
| 76 | ac.es.IncrByFloatEqual(t, "incr", 1.111111) |
| 77 | ac.es.IncrByFloatEqual(t, "incr", 2.1e2) |
| 78 | ac.es.StrlenEqual(t, "heng") |
| 79 | |
| 80 | } |
| 81 | |
| 82 | //ListCase check list case |
| 83 | //TODO |