diff options
| author | crueter <crueter@eden-emu.dev> | 2025-08-16 03:19:02 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-08-16 03:19:02 +0200 |
| commit | d96da5104bf7eb1385ce0fb3088efef71e059940 (patch) | |
| tree | 918c260d2fa735ff364731e0b5cd379340c54acd /externals/simpleini/tests/ts-noconvert.cpp | |
| parent | 1f5f9d34d1bb9a8ab56d6a366a218081a6491fb6 (diff) | |
[cmake] final CPM fixes (#267)
- remove vcpkg references in docs
- move externals around
- fix non-cpm stuff
- remove redundant simpleini call/dir
Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/267
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Diffstat (limited to 'externals/simpleini/tests/ts-noconvert.cpp')
| -rw-r--r-- | externals/simpleini/tests/ts-noconvert.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/externals/simpleini/tests/ts-noconvert.cpp b/externals/simpleini/tests/ts-noconvert.cpp deleted file mode 100644 index d1951e44ad..0000000000 --- a/externals/simpleini/tests/ts-noconvert.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include "pch.h" - -#define SI_NO_CONVERSION -#include "../SimpleIni.h" - -class TestNoConvert : public ::testing::Test { -protected: - void SetUp() override; -protected: - CSimpleIniA ini; -}; - -void TestNoConvert::SetUp() { - ini.SetUnicode(); - SI_Error err = ini.LoadFile("tests.ini"); - ASSERT_EQ(err, SI_OK); -} - -TEST_F(TestNoConvert, TestSectionAKeyAValA) { - const char* result = ini.GetValue("section1", "key1"); - ASSERT_STREQ(result, "value1"); -} - -TEST_F(TestNoConvert, TestSectionAKeyAValU) { - const char tesuto2[] = u8"テスト2"; - const char* result = ini.GetValue("section2", "test2"); - ASSERT_STREQ(result, tesuto2); -} - -TEST_F(TestNoConvert, TestSectionAKeyUValA) { - const char tesuto[] = u8"テスト"; - const char* result = ini.GetValue("section2", tesuto); - ASSERT_STREQ(result, "test"); -} - -TEST_F(TestNoConvert, TestSectionAKeyUValU) { - const char tesuto2[] = u8"テスト2"; - const char tesutoni[] = u8"テスト二"; - const char* result = ini.GetValue("section2", tesuto2); - ASSERT_STREQ(result, tesutoni); -} - -TEST_F(TestNoConvert, TestSectionUKeyAValA) { - const char kensa[] = u8"検査"; - const char* result = ini.GetValue(kensa, "key2"); - ASSERT_STREQ(result, "value2"); -} - -TEST_F(TestNoConvert, TestSectionUKeyAValU) { - const char kensa[] = u8"検査"; - const char tesuto2[] = u8"テスト2"; - const char* result = ini.GetValue(kensa, "test2"); - ASSERT_STREQ(result, tesuto2); -} - -TEST_F(TestNoConvert, TestSectionUKeyUValA) { - const char kensa[] = u8"検査"; - const char tesuto[] = u8"テスト"; - const char* result = ini.GetValue(kensa, tesuto); - ASSERT_STREQ(result, "test"); -} - -TEST_F(TestNoConvert, TestSectionUKeyUValU) { - const char kensa[] = u8"検査"; - const char tesuto2[] = u8"テスト2"; - const char tesutoni[] = u8"テスト二"; - const char* result = ini.GetValue(kensa, tesuto2); - ASSERT_STREQ(result, tesutoni); -} |
