summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-21 20:47:52 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-21 20:47:52 +0000
commit45298c730b74f7779305ecc96da7beb6572438de (patch)
tree0d0b90e0d7b5791df2fef3de8825cc149a4a6408 /tests
parent1b0a27c7f4dcee56422cfa405feeac7c4527ea40 (diff)
tests: Added different casing to lang test
git-svn-id: http://pugixml.googlecode.com/svn/trunk@176 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xpath_functions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_xpath_functions.cpp b/tests/test_xpath_functions.cpp
index d033ab4..d492da9 100644
--- a/tests/test_xpath_functions.cpp
+++ b/tests/test_xpath_functions.cpp
@@ -185,7 +185,7 @@ TEST(xpath_boolean_false)
CHECK_XPATH_FAIL("false(1)");
}
-TEST_XML(xpath_boolean_lang, "<node xml:lang='en'><child xml:lang='ru-uk'><subchild/></child></node><foo><bar/></foo>")
+TEST_XML(xpath_boolean_lang, "<node xml:lang='en'><child xml:lang='ru-UK'><subchild/></child></node><foo><bar/></foo>")
{
xml_node c;
@@ -203,6 +203,7 @@ TEST_XML(xpath_boolean_lang, "<node xml:lang='en'><child xml:lang='ru-uk'><subch
CHECK_XPATH_BOOLEAN(doc.child("node").child("child"), "lang('ru-uk')", true);
CHECK_XPATH_BOOLEAN(doc.child("node").child("child"), "lang('ru')", true);
CHECK_XPATH_BOOLEAN(doc.child("node").child("child").child("subchild"), "lang('ru')", true);
+ CHECK_XPATH_BOOLEAN(doc.child("node").child("child").child("subchild"), "lang('RU')", true);
// lang with 1 argument, different language/prefix
CHECK_XPATH_BOOLEAN(doc.child("node"), "lang('')", false);