Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. # *** Simple test:
  2. #data decode STRICT
  3. &#x0040&#x4142
  4. #expected PARSERUTILS_OK
  5. &#x00000040&#x00004142
  6. #reset
  7.  
  8. # *** Surrogate test:
  9. #data decode STRICT
  10. &#xD800&#xDF02
  11. #expected PARSERUTILS_OK
  12. &#x00010302
  13. #reset
  14.  
  15. # *** Lonely high surrogate:
  16. # This is a bit strange that end status is ok.
  17. #data decode STRICT
  18. &#xD805
  19. #expected PARSERUTILS_OK
  20. #reset
  21.  
  22. # With an extra code point, the status is different.
  23. #data decode STRICT
  24. &#xD805&#x4142
  25. #expected PARSERUTILS_INVALID
  26. #reset
  27.  
  28. # *** Wrong low surrogate start:
  29. #data decode STRICT
  30. &#xDC05
  31. #expected PARSERUTILS_INVALID
  32. #reset
  33.  
  34.