github的一些开源项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
622 B

  1. # This set of tests is run only with the 8-bit library. It tests the POSIX
  2. # interface with UTF/UCP support, which is supported only with the 8-bit
  3. # library. This test should not be run with JIT (which is not available for the
  4. # POSIX interface).
  5. #pattern posix
  6. /a\x{1234}b/utf
  7. a\x{1234}b
  8. 0: a\x{1234}b
  9. /\w/
  10. \= Expect no match
  11. +++\x{c2}
  12. No match: POSIX code 17: match failed
  13. /\w/ucp
  14. +++\x{c2}
  15. 0: \xc2
  16. /"^AB" 00 "\x{1234}$"/hex,utf
  17. AB\x{00}\x{1234}\=posix_startend=0:6
  18. 0: AB\x{00}\x{1234}
  19. /\w/utf
  20. \= Expect UTF error
  21. A\xabB
  22. No match: POSIX code 16: bad argument
  23. # End of testdata/testinput19