From aae1ccfcb5f33c67e5e0392458d6e148b6b4cfcd Mon Sep 17 00:00:00 2001 From: firewave Date: Wed, 28 Aug 2024 13:42:42 +0200 Subject: [PATCH] TestIO: added missing testing of `Win32W` --- test/testio.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/testio.cpp b/test/testio.cpp index 0f21343ff16..a314396ed71 100644 --- a/test/testio.cpp +++ b/test/testio.cpp @@ -836,6 +836,8 @@ class TestIO : public TestFixture { assertEquals(filename, linenr, emptyString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, emptyString, errout_str()); + check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp)); + assertEquals(filename, linenr, emptyString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, emptyString, errout_str()); } @@ -850,6 +852,8 @@ class TestIO : public TestFixture { assertEquals(filename, linenr, testScanfErrString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, testScanfErrString, errout_str()); + check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp)); + assertEquals(filename, linenr, testScanfErrString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, testScanfErrString, errout_str()); } @@ -864,6 +868,8 @@ class TestIO : public TestFixture { assertEquals(filename, linenr, testScanfErrAkaString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, testScanfErrAkaString, errout_str()); + check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp)); + assertEquals(filename, linenr, testScanfErrAkaString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, testScanfErrAkaWin64String, errout_str()); } @@ -878,6 +884,8 @@ class TestIO : public TestFixture { assertEquals(filename, linenr, emptyString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, emptyString, errout_str()); + check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp)); + assertEquals(filename, linenr, emptyString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, testScanfErrAkaWin64String, errout_str()); } @@ -892,6 +900,8 @@ class TestIO : public TestFixture { assertEquals(filename, linenr, testScanfErrAkaString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32A, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, testScanfErrAkaString, errout_str()); + check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win32W, $.onlyFormatStr = true, $.cpp = cpp)); + assertEquals(filename, linenr, testScanfErrAkaString, errout_str()); check(code, dinit(CheckOptions, $.inconclusive = true, $.portability = true, $.platform = Platform::Type::Win64, $.onlyFormatStr = true, $.cpp = cpp)); assertEquals(filename, linenr, emptyString, errout_str()); } @@ -2152,6 +2162,8 @@ class TestIO : public TestFixture { ASSERT_EQUALS(result, errout_str()); check(code, dinit(CheckOptions, $.portability = true, $.platform = Platform::Type::Win32A)); ASSERT_EQUALS(result, errout_str()); + check(code, dinit(CheckOptions, $.portability = true, $.platform = Platform::Type::Win32W)); + ASSERT_EQUALS(result, errout_str()); check(code, dinit(CheckOptions, $.portability = true, $.platform = Platform::Type::Win64)); ASSERT_EQUALS(result_win64, errout_str()); }