~singpolyma/biboumi

e847084b002b08f26533b13e0511eeaec36bdae8 — Florent Le Coz 10 years ago 4b5d2d1
Improve the test on jidprep
1 files changed, 2 insertions(+), 2 deletions(-)

M src/test.cpp
M src/test.cpp => src/test.cpp +2 -2
@@ 171,9 171,9 @@ int main()
  assert(jid2.resource == "coucou@coucou/coucou");

  // Jidprep
  const std::string& badjid("~zigougou@EpiK-7D9D1FDE.poez.io/Boujour/coucou/slt");
  const std::string& badjid("~zigougou™@EpiK-7D9D1FDE.poez.io/Boujour/coucou/slt™");
  const std::string correctjid = jidprep(badjid);
  assert(correctjid == "~zigougou@epik-7d9d1fde.poez.io/Boujour/coucou/slt");
  assert(correctjid == "~zigougoutm@epik-7d9d1fde.poez.io/Boujour/coucou/sltTM");

  const std::string& badjid2("Zigougou@poez.io");
  const std::string correctjid2 = jidprep(badjid2);