jruoho
2ba250a115
After a comedy of errors, move t_mbtowc to its final resting place.
2020-06-30 16:09:40 +00:00
christos
92bbbea0b3
PR/54414: Valery Ushakov: add a test for wcsrtombs(3) doesn't update the
...
source argument on conversion error
2019-07-28 13:46:45 +00:00
kre
20fdaa6a50
Update this test to expect the output that is supposed to be produced
...
by strfmon() rather than the output the old buggy implementation used
to produce.
2017-12-07 22:23:14 +00:00
kre
3772e94e67
Since the C standard allows for intermediate floating results to contain
...
more precision bits than the data type expects, but (kind of obviously)
does not allow such values to be stored in memory, expecting the value
returned from strtod() (an intermediate result) to be identical (that is,
equal) to a stored value is incorrect.
So instead go back to checking that the two numbers are very very close.
See comments added to the test for more explanation.
2017-12-01 01:08:35 +00:00
kre
52a978120f
Revert 1.4 (perhaps temporarily) and add even more diagnostics to those
...
added in 1.3 to see if it is possible to determine why the strict equality
test fails on i386, yet succeeds elsewhere.
2017-11-28 23:26:01 +00:00
kre
fa3a535c5c
When comparing doubles (any floating point values) which have been
...
computed using different methods, don't expect to achieve identical
results (here, one constant is perhaps converted to binary from a string by
a cross compiler, the other is converted at run time). Allow them to
have a small difference (for now, small is < 1e-7 - the constant is ~ 1e5,
so this is 12 orders of magnitude less) before failing (and include the
actual difference in the error message if it does fail.)
2017-11-24 21:30:43 +00:00
kre
b19b969600
Add some diagnostics to the strto test, so I can see why this
...
fails on i386 (on qemu) - will probably keep them when done.
2017-11-23 23:47:09 +00:00
joerg
29f5b623d9
Add missing strfmon_l. Noticed by Bruno Haible. Add test case.
2017-08-16 13:53:19 +00:00
perseant
bb20dbc8c8
Separate the C/POSIX locale test from the rest; make it more thorough
...
and more correct. This fixes a problem reported by martin@ when the
test is compiled with -funsigned-char.
2017-08-10 19:08:43 +00:00
perseant
508bf0d1f1
Add missing files from last commit:
...
Move Unicode <-> ku/ten mapping into the individual codec modules.
Mapping is based on existing iconv data for single-byte encodings,
and included for several, but not all, multibyte encodings.
2017-07-23 18:51:21 +00:00
perseant
4a641438c8
Add a simple collation test. This test is expected to fail on HEAD since
...
we do not yet have a working implementation of wcscoll.
2017-07-14 14:57:43 +00:00
joerg
3d39ee5ed6
VAX doesn't have the test cases, so stub the body as well.
2017-07-14 14:09:53 +00:00
perseant
adbde1f900
Add ISO10646 versions of these tests, conditional on __STDC_ISO_10646__ .
...
Also make the tests a bit more verbose, to aid debugging when they fail.
2017-07-12 17:32:51 +00:00
perseant
8b7adb7bf9
Change t_sprintf to an expected failure, since we don't respect the empty
...
thousands separator of the C/POSIX locale (PR standards/52282).
2017-06-07 22:59:42 +00:00
perseant
d4f6523beb
Add tests for btowc(3)/wctob(3) and enable compilation of the test for
...
digittoint(3).
The digittoint(3) test is skipped since we don't provide that function yet.
One of the test cases for btowc(3) is also skipped, since it tests conversion
to Unicode---whereas our wchar_t representation is locale-dependent.
2017-06-01 15:45:02 +00:00
perseant
ce11903f24
Add test cases for sprintf/sscanf/strto{d,l} and the is* and isw* ctype functions, for single-byte encodings
2017-05-30 23:44:02 +00:00
perseant
4f17535a14
Add simple test case for toupper/tolower
2017-05-30 02:11:03 +00:00
perseant
80f1b646c3
Add a member to the test data structure that indicates whether the given
...
encoding is state-dependent, and test the results of wctomb(NULL, '\0') and
mbtowc(NULL, NULL, 0) against this instead of against each other.
2017-05-25 18:28:54 +00:00
yamt
d1d388317b
include string.h for memset
2014-05-06 00:41:26 +00:00
yamt
eb988d97e6
fix comment typos pointed out by uebayasi
2014-01-21 00:32:16 +00:00
yamt
d1e900e606
- fix funopen usage
...
- some more checks
- remove a bogus test case (bad_eucJP_getwc) PR/47660 (Julio Merino)
- add XXX comments
2014-01-20 14:14:56 +00:00
joerg
85a67e61f7
Add mbsnrtowcs and wcsnrtombs. Approved by core.
2013-05-28 16:57:56 +00:00
gson
1189f7bcc3
Don't size an array using MB_CUR_MAX while one locale is in effect and
...
then use it with another locale having a larger MB_CUR_MAX. This
should fix the t_wctomb:wcrtomb_state test failures seen on i386.
2013-03-25 15:31:03 +00:00
jmmv
5ac530f373
Mark two routinely-broken tests as expected failures referencing PR lib/47660.
2013-03-17 05:02:13 +00:00
christos
f529593485
regression tests for wide char i/o. Currently there are failures.
2013-02-28 21:52:02 +00:00
joerg
9cf8fb38ac
Add test cases for strcspn, strpbrk, strspn, wcscspn, wcspbrk and
...
wcsspn.
2011-11-21 23:50:44 +00:00
christos
1ef7da4f3d
Undo previous, Checking for vax is more appropriate.
2011-10-01 17:56:11 +00:00
christos
2cbc70fcc3
no more ifdef vax
2011-10-01 17:54:13 +00:00
jruoho
1ea16e5059
Rename two test files to get functional scope (and avoid confusion
...
with ctype(3)). No functional change.
2011-07-15 07:35:21 +00:00
christos
2a18cea9f4
Turn warns on for all tests and fix all the bugs.
2011-06-11 18:03:17 +00:00
tron
7831dec066
Fix build with stack smash protection enabled.
2011-04-11 17:16:43 +00:00
pgoyette
324074b933
atf-ify the various locale tests
2011-04-09 17:45:24 +00:00