[PATCH] oleaut32/tests: The EUR abbreviation is not recognized as a currency.

Francois Gouget fgouget at codeweavers.com
Wed Apr 27 08:21:35 CDT 2022


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 dlls/oleaut32/tests/vartest.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index 4fc0e4e0221..cdbb836b041 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -2151,6 +2151,12 @@ static void test_VarParseNumFromStrFr(void)
   EXPECT2(1,2);
   EXPECTRGB(2,FAILDIG);
 
+  /* The three-letter Euro abbreviation is not allowed */
+  WCONVERT(L"12EUR", NUMPRS_CURRENCY);
+  EXPECT(2,NUMPRS_CURRENCY,0,2,0,0);
+  EXPECT2(1,2);
+  EXPECTRGB(2,FAILDIG);
+
   /* With flag and decimal flag, consumes decimal point and following digits */
   WCONVERT(L"12,1\x20ac", NUMPRS_CURRENCY|NUMPRS_DECIMAL|NUMPRS_USE_ALL);
   EXPECT(3,NUMPRS_CURRENCY|NUMPRS_DECIMAL|NUMPRS_USE_ALL,NUMPRS_CURRENCY|NUMPRS_DECIMAL,5,0,-1);
-- 
2.30.2



More information about the wine-devel mailing list