aboutsummaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2017-07-24 14:33:08 -0700
committerDan Albert <danalbert@google.com>2017-07-24 14:33:08 -0700
commit43609cbb9184419d5b5227eed3e4108af24d7214 (patch)
tree08dc7bac69e620a40c62d6619800795a12cce413 /sources
parent15322dbf4c9c659dcefb29384776ed744a404517 (diff)
downloadndk-43609cbb9184419d5b5227eed3e4108af24d7214.tar.gz
Exclude more test cases.
I didn't catch all the hex float cases. Test: ./run_tests.py Bug: None Change-Id: I0281ad146482a6ccbecbcf4f80d69d99c38a1943
Diffstat (limited to 'sources')
-rw-r--r--sources/android/support/tests/wchar_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/android/support/tests/wchar_test.cpp b/sources/android/support/tests/wchar_test.cpp
index bf631f111..345659a74 100644
--- a/sources/android/support/tests/wchar_test.cpp
+++ b/sources/android/support/tests/wchar_test.cpp
@@ -85,8 +85,10 @@ TEST(wchar, wcstod) {
{ L"-0.2", -0.2, 4 },
{ L"-3.1415926535", -3.1415926535, 13 },
{ L"+1e+100", 1e100, 7 },
+#if __ANDROID_API__ >= __ANDROID_API_L__
{ L"0x10000.80", 65536.50, 10 },
{ L"1.e60", 1e60, 5 },
+#endif
};
for (size_t n = 0; n < ARRAY_SIZE(kData); ++n) {
const char* text = to_cstr(kData[n].input);
@@ -109,8 +111,10 @@ TEST(wchar, wcstold) {
{ L"-0.2", -0.2L, 4 },
{ L"-3.1415926535", -3.1415926535L, 13 },
{ L"+1e+100", 1e100L, 7 },
+#if __ANDROID_API__ >= __ANDROID_API_L__
{ L"0x10000.80", 65536.50L, 10 },
{ L"+1.e+100", 1e100L, 8 },
+#endif
};
for (size_t n = 0; n < ARRAY_SIZE(kData); ++n) {
const char* text = to_cstr(kData[n].input);