summaryrefslogtreecommitdiff
path: root/lib/utfcpp/v3/tests/test_checked_iterator.h
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-12-12 05:54:46 +0000
committerGitHub <noreply@github.com>2023-12-12 05:54:46 +0000
commitb9740e127196b2e23cd249ca671c7af08ab81321 (patch)
tree5fce23e4ccec104bcf516be22e1027c28bbe0e0e /lib/utfcpp/v3/tests/test_checked_iterator.h
parent5b05878484434d0ea2b2723f128b25d9cdb7a52e (diff)
parentf017686dd4720bac373e8fcd5b779777a83162ec (diff)
downloadfork-ledger-b9740e127196b2e23cd249ca671c7af08ab81321.tar.gz
fork-ledger-b9740e127196b2e23cd249ca671c7af08ab81321.tar.bz2
fork-ledger-b9740e127196b2e23cd249ca671c7af08ab81321.zip
Merge pull request #2315 from afh/update-utfcpp
utfcpp: Update to 4.0.4
Diffstat (limited to 'lib/utfcpp/v3/tests/test_checked_iterator.h')
-rw-r--r--lib/utfcpp/v3/tests/test_checked_iterator.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/utfcpp/v3/tests/test_checked_iterator.h b/lib/utfcpp/v3/tests/test_checked_iterator.h
deleted file mode 100644
index 2829a734..00000000
--- a/lib/utfcpp/v3/tests/test_checked_iterator.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef UTF8_FOR_CPP_TEST_CHECKED_ITERATOR_H_2675DCD0_9480_4c0c_B92A_CC14C027B731
-#define UTF8_FOR_CPP_TEST_CHECKED_ITERATOR_H_2675DCD0_9480_4c0c_B92A_CC14C027B731
-
-#include "utf8.h"
-
-using namespace utf8;
-
-
-TEST(CheckedIteratrTests, test_increment)
-{
- const char* threechars = "\xf0\x90\x8d\x86\xe6\x97\xa5\xd1\x88";
- utf8::iterator<const char*> it(threechars, threechars, threechars + 9);
- utf8::iterator<const char*> it2 = it;
- EXPECT_EQ (it2, it);
- EXPECT_EQ (*it, 0x10346);
- EXPECT_EQ (*(++it), 0x65e5);
- EXPECT_EQ ((*it++), 0x65e5);
- EXPECT_EQ (*it, 0x0448);
- EXPECT_NE (it, it2);
- utf8::iterator<const char*> endit (threechars + 9, threechars, threechars + 9);
- EXPECT_EQ (++it, endit);
-}
-
-TEST(CheckedIteratrTests, test_decrement)
-{
- const char* threechars = "\xf0\x90\x8d\x86\xe6\x97\xa5\xd1\x88";
- utf8::iterator<const char*> it(threechars+9, threechars, threechars + 9);
- EXPECT_EQ (*(--it), 0x0448);
- EXPECT_EQ ((*it--), 0x0448);
- EXPECT_EQ (*it, 0x65e5);
- EXPECT_EQ (--it, utf8::iterator<const char*>(threechars, threechars, threechars + 9));
- EXPECT_EQ (*it, 0x10346);
-}
-
-#endif