()
| 527 | |
| 528 | #[test] |
| 529 | fn test_seq_concat_string() { |
| 530 | let gil = Python::acquire_gil(); |
| 531 | let py = gil.python(); |
| 532 | let v = "string"; |
| 533 | let seq = v |
| 534 | .to_py_object(py) |
| 535 | .into_object() |
| 536 | .cast_into::<PySequence>(py) |
| 537 | .unwrap(); |
| 538 | let concat_seq = seq |
| 539 | .concat(py, &seq) |
| 540 | .unwrap() |
| 541 | .cast_into::<PySequence>(py) |
| 542 | .unwrap(); |
| 543 | assert_eq!(12, concat_seq.len(py).unwrap()); |
| 544 | /*let concat_v = "stringstring".to_owned(); |
| 545 | for (el, cc) in seq.iter(py).unwrap().zip(concat_v.chars()) { |
| 546 | assert_eq!(cc, el.unwrap().extract::<char>(py).unwrap()); //TODO: extract::<char>() is not implemented |
| 547 | }*/ |
| 548 | } |
| 549 | |
| 550 | #[test] |
| 551 | fn test_seq_repeat() { |
nothing calls this directly
no test coverage detected