

//

fn _split_with_option_preserving_delimeters()
{
  let src = "a b c";
  let iter = TheModule::string::split()
 .src( src )
 .delimeter( " " )
 .preserving_delimeters( true )
 .stripping( false )
 .perform();
  assert_eq!( iter.map( | e | String::from( e ) ).collect::< Vec< _ > >(), vec![ "a", " ", "b", " ", "c" ] );

  let src = "a b c";
  let iter = TheModule::string::split()
 .src( src )
 .delimeter( " " )
 .preserving_delimeters( false )
 .stripping( false )
 .perform();
  assert_eq!( iter.map( | e | String::from( e ) ).collect::< Vec< _ > >(), vec![ "a", "b", "c" ] );
}

//

fn _split_with_option_stripping()
{
  let src = "a b c";
  let iter = TheModule::string::split()
 .src( src )
 .delimeter( " " )
 .stripping( true )
 .perform();
  assert_eq!( iter.map( | e | String::from( e ) ).collect::< Vec< _ > >(), vec![ "a", "", "b", "", "c" ] );

  let src = "a b c";
  let iter = TheModule::string::split()
 .src( src )
 .delimeter( " " )
 .stripping( false )
 .perform();
  assert_eq!( iter.map( | e | String::from( e ) ).collect::< Vec< _ > >(), vec![ "a", " ", "b", " ", "c" ] );

  /* */

  let src = "a b c";
  let iter = TheModule::string::split()
 .src( src )
 .delimeter( "b" )
 .stripping( true )
 .perform();
  assert_eq!( iter.map( | e | String::from( e ) ).collect::< Vec< _ > >(), vec![ "a", "b", "c" ] );

  let src = "a b c";
  let iter = TheModule::string::split()
 .src( src )
 .delimeter( "b" )
 .preserving_delimeters( false )
 .stripping( true )
 .perform();
  assert_eq!( iter.map( | e | String::from( e ) ).collect::< Vec< _ > >(), vec![ "a", "c" ] );
}

//

test_suite!
{
  basic,
  split_with_option_preserving_empty,
  split_with_option_preserving_delimeters,
  split_with_option_stripping,
}Don Quixote and Sancho, is a sculptural group that presents us with life-size sculptures of Don Quixote and Sancho Panza, protagonists of the literary work "Don Quixote" sitting on a bench.
Since this monument was inaugurated in April 2005, it has gained great popularity and has become one of the iconic photos of Alcalá de Henares.
In fact, when you go to visit the Cervantes Birthplace Museum, it will surely cost you to resist not taking a picture with these illustrious figures.
You may even have to wait in line to take the picture.
The Monument to Don Quijote and Sancho is the work of the sculptor Pedro Requejo, from whom in the same year a large sculpture dedicated to Pope John Paul II, two and a half meters high, was also installed in a park in Alcalá de Henares.
In short, a curious corner to keep in mind during your walk through this historic town of Madrid.
Don Quijote y Sancho, es un conjunto escultórico que nos presenta sendas esculturas a tamaño natural de Don Quijote y Sancho Panza protagonistas de la obra literaria “El Quijote” sentados en un banco.
Desde que este monumento se inauguró en abril de 2005 se ha granjeado una gran popularidad y se ha convertido en una de las fotos icono de Alcalá de Henares.
De hecho, cuando vayas a visitar el Museo Casa Natal de Cervantes, seguro que te costará resistirte a no hacerte una foto junto a estas ilustres figuras.
Incluso puede que tengas que esperar cola para hacer la foto.
El Monumento a Don Quijote y Sancho es obra del escultor Pedro Requejo, de quien en el mismo año también se instaló en un parque de Alcalá de Henares una gran escultura dedicada al papa Juan Pablo II, de dos metros y medio de altura.
En suma, un curioso rincón a tener en cuenta durante tu paseo por esta histórica localidad madrileña.
ikeharel, Fis2, pajaran, holmertz, Royaldevon, jhm, sacimar, jean113 ha puntuado esta nota como útil.
Another topclass capture/entry in your gallery. Art on the streets is quite popular in Europe and this is one of them.
Those two famous figures was our most popular heros during our childhood.
Your capture is been made with good pov and sharpness. Nice framing.
A very curious view, sculptures are impressive.
Don Quixote seems as argue and gives a lecture to Sancho Panza while sitting on the bench in the urban area, a whole different perspective like we usually see those characters... on a horse and a mule, Luis.
Anyway, after my humoristic approach, I can say I appreciate this nice and well lit picture of the known figures.
Lepe skulpture i ograda.
lepe skulpture Don Quijote y Sancho.
Cuvajte se od smrtonosnog virusa, gledam vesti, kod vas je bas strasno.
Beautiful sculptures and fencing.
beautiful sculptures by Don Quixote y Sancho.
Beware of the deadly virus, I watch the news, it's really scary for you.
Some 15-20 years ago I decided to read Don Quixote to find out if such an old book is really readable today. I was so happily surprised: It was a great story! Old, yes, but still exciting and funny and rather moving. Few stories have survived the centuries as well as Don Quixote. So if I came to this place I would gladly take a picture like this. Since I am sure I won't come here, I gladly watch your well taken photo instead.
Charming scene, famous characters, great light.
I remember reading the book when I was a boy.
So typical Spanish.
This is a very striking sculpture. It doesn’t surprise me to learn how popular it is with photographers.
I think you chose the best viewpoint, showing the animated expression on the face of Don Quixote. The textural details are as well captured as the character details.
An excellent photo of these two sculptures depicting the famous literary characters. You captured them really well in a fine sunlight, which brings out their brown colours very well.
A really interesting photo. I never imagined Sancho being so chubby.
Alcala is the birthplace of Cervantes so no wonder we see here this nice sculpture depicting Don Quijote and Sancho Pansa. Charming composition. I suppose that many people sith there between them and want to have photos taken. Luckily not at this moment.
dos personajes icónicos de españa. imagino que las personas gustem mucho de hacer selfies en ese lugar. creo que el banco para sentarse és muy moderno, creo que algo semejante a un bloco de piedras o un tronco de árbol seria algo mas conveniente.
Hello Luis, I can imagine the queue waiting to take some shots of these interesting sculptures.
The pose of Don Quixote is quite special.
The sunlight highlights the features beautifully.
David Bowie "curated his death" with his final album Blackstar and his US musical Lazarus - which he co-wrote with Irish playwright Enda Walsh - according to celebrity portrait photographer Annie Leibovitz.
The late musician released his final single, also titled Lazarus, two days before his death. It features lyrics including: "Look up here, I'm in heaven".
"From what I understand, these last 18 months he really curated his death, and the play Lazarus and the album - I just think that's an extraordinary thing he did as an artist, to understand he was dying and put all of himself into that look," Leibovitz said.
Speaking