Sort was backward
This commit is contained in:
@@ -32,7 +32,7 @@ TEST_CASE("Hash disco 1") {
|
||||
|
||||
auto check_stanza = [](const Stanza &stanza) {
|
||||
const std::string hash = Xmpp::hash_disco_sha1(stanza);
|
||||
CHECK(hash == "tdfKhW7S+KYskVHBtEvgPUiK0mA=");
|
||||
CHECK(hash == "GRREviyyjLzK2wK4QLX5NNF9FmQ=");
|
||||
};
|
||||
xml.add_stanza_callback([check_stanza](const Stanza &stanza) {
|
||||
check_stanza(stanza);
|
||||
@@ -62,7 +62,7 @@ TEST_CASE("Hash disco 2") {
|
||||
|
||||
auto check_stanza = [](const Stanza &stanza) {
|
||||
const std::string hash = Xmpp::hash_disco_sha1(stanza);
|
||||
CHECK(hash == "/14s9S+QIGmb2qxhLvEpt/w64gw=");
|
||||
CHECK(hash == "ga7DGXbUk3tyt5T/WMlqa5qM0zM=");
|
||||
};
|
||||
xml.add_stanza_callback([check_stanza](const Stanza &stanza) {
|
||||
check_stanza(stanza);
|
||||
@@ -91,7 +91,7 @@ TEST_CASE("Hash disco 2 different order") {
|
||||
|
||||
auto check_stanza = [](const Stanza &stanza) {
|
||||
const std::string hash = Xmpp::hash_disco_sha1(stanza);
|
||||
CHECK(hash == "/14s9S+QIGmb2qxhLvEpt/w64gw=");
|
||||
CHECK(hash == "ga7DGXbUk3tyt5T/WMlqa5qM0zM=");
|
||||
};
|
||||
xml.add_stanza_callback([check_stanza](const Stanza &stanza) {
|
||||
check_stanza(stanza);
|
||||
|
||||
Reference in New Issue
Block a user