Skip to content

Commit

Permalink
fbc-tests: disable bad test
Browse files Browse the repository at this point in the history
- tests/wstring/conv-ascii-wstring.bas
- we should like to check for ASC() results from malformed wstrings, but it appears to have different results
  depending on platform
  • Loading branch information
jayrm committed May 14, 2023
1 parent 210ae88 commit 2f13a5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/wstring/conv-ascii-wstring.bas
Expand Up @@ -16,9 +16,13 @@ dim as string s2 = lcase(Wstr(s1))
#else

'' Disable on DOS - it fails, and we don't really have a sensible wstring anyway
#if not defined( __FB_DOS__ )
'' Disable on ARM - it fails, and we might get results as in above with __FB_WIN32__
'' !!!FIXME!!! we want to test conversions but this is a poorly written test!
'' #if (not defined( __FB_DOS__ )) and (not defined( __FB_ARM__ ))
#if 0
assert( asc(s2, 1) = asc("?") )
assert( asc(s2, 2) = asc("?") )
#endif

#endif

0 comments on commit 2f13a5f

Please sign in to comment.