clojure.test.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. 'use strict';
  6. import {ITestItem, testTokenization} from '../test/testRunner';
  7. const specialForms = [
  8. '.',
  9. 'catch',
  10. 'def',
  11. 'do',
  12. 'if',
  13. 'monitor-enter',
  14. 'monitor-exit',
  15. 'new',
  16. 'quote',
  17. 'recur',
  18. 'set!',
  19. 'throw',
  20. 'try',
  21. 'var',
  22. ];
  23. const coreSymbols = [
  24. '*',
  25. '*\'',
  26. '*1',
  27. '*2',
  28. '*3',
  29. '*agent*',
  30. '*allow-unresolved-vars*',
  31. '*assert*',
  32. '*clojure-version*',
  33. '*command-line-args*',
  34. '*compile-files*',
  35. '*compile-path*',
  36. '*compiler-options*',
  37. '*data-readers*',
  38. '*default-data-reader-fn*',
  39. '*e',
  40. '*err*',
  41. '*file*',
  42. '*flush-on-newline*',
  43. '*fn-loader*',
  44. '*in*',
  45. '*math-context*',
  46. '*ns*',
  47. '*out*',
  48. '*print-dup*',
  49. '*print-length*',
  50. '*print-level*',
  51. '*print-meta*',
  52. '*print-namespace-maps*',
  53. '*print-readably*',
  54. '*read-eval*',
  55. '*reader-resolver*',
  56. '*source-path*',
  57. '*suppress-read*',
  58. '*unchecked-math*',
  59. '*use-context-classloader*',
  60. '*verbose-defrecords*',
  61. '*warn-on-reflection*',
  62. '+',
  63. '+\'',
  64. '-',
  65. '-\'',
  66. '->',
  67. '->>',
  68. '->ArrayChunk',
  69. '->Eduction',
  70. '->Vec',
  71. '->VecNode',
  72. '->VecSeq',
  73. '-cache-protocol-fn',
  74. '-reset-methods',
  75. '..',
  76. '/',
  77. '<',
  78. '<=',
  79. '=',
  80. '==',
  81. '>',
  82. '>=',
  83. 'EMPTY-NODE',
  84. 'Inst',
  85. 'StackTraceElement->vec',
  86. 'Throwable->map',
  87. 'accessor',
  88. 'aclone',
  89. 'add-classpath',
  90. 'add-watch',
  91. 'agent',
  92. 'agent-error',
  93. 'agent-errors',
  94. 'aget',
  95. 'alength',
  96. 'alias',
  97. 'all-ns',
  98. 'alter',
  99. 'alter-meta!',
  100. 'alter-var-root',
  101. 'amap',
  102. 'ancestors',
  103. 'and',
  104. 'any?',
  105. 'apply',
  106. 'areduce',
  107. 'array-map',
  108. 'as->',
  109. 'aset',
  110. 'aset-boolean',
  111. 'aset-byte',
  112. 'aset-char',
  113. 'aset-double',
  114. 'aset-float',
  115. 'aset-int',
  116. 'aset-long',
  117. 'aset-short',
  118. 'assert',
  119. 'assoc',
  120. 'assoc!',
  121. 'assoc-in',
  122. 'associative?',
  123. 'atom',
  124. 'await',
  125. 'await-for',
  126. 'await1',
  127. 'bases',
  128. 'bean',
  129. 'bigdec',
  130. 'bigint',
  131. 'biginteger',
  132. 'binding',
  133. 'bit-and',
  134. 'bit-and-not',
  135. 'bit-clear',
  136. 'bit-flip',
  137. 'bit-not',
  138. 'bit-or',
  139. 'bit-set',
  140. 'bit-shift-left',
  141. 'bit-shift-right',
  142. 'bit-test',
  143. 'bit-xor',
  144. 'boolean',
  145. 'boolean-array',
  146. 'boolean?',
  147. 'booleans',
  148. 'bound-fn',
  149. 'bound-fn*',
  150. 'bound?',
  151. 'bounded-count',
  152. 'butlast',
  153. 'byte',
  154. 'byte-array',
  155. 'bytes',
  156. 'bytes?',
  157. 'case',
  158. 'cast',
  159. 'cat',
  160. 'char',
  161. 'char-array',
  162. 'char-escape-string',
  163. 'char-name-string',
  164. 'char?',
  165. 'chars',
  166. 'chunk',
  167. 'chunk-append',
  168. 'chunk-buffer',
  169. 'chunk-cons',
  170. 'chunk-first',
  171. 'chunk-next',
  172. 'chunk-rest',
  173. 'chunked-seq?',
  174. 'class',
  175. 'class?',
  176. 'clear-agent-errors',
  177. 'clojure-version',
  178. 'coll?',
  179. 'comment',
  180. 'commute',
  181. 'comp',
  182. 'comparator',
  183. 'compare',
  184. 'compare-and-set!',
  185. 'compile',
  186. 'complement',
  187. 'completing',
  188. 'concat',
  189. 'cond',
  190. 'cond->',
  191. 'cond->>',
  192. 'condp',
  193. 'conj',
  194. 'conj!',
  195. 'cons',
  196. 'constantly',
  197. 'construct-proxy',
  198. 'contains?',
  199. 'count',
  200. 'counted?',
  201. 'create-ns',
  202. 'create-struct',
  203. 'cycle',
  204. 'dec',
  205. 'dec\'',
  206. 'decimal?',
  207. 'declare',
  208. 'dedupe',
  209. 'default-data-readers',
  210. 'definline',
  211. 'definterface',
  212. 'defmacro',
  213. 'defmethod',
  214. 'defmulti',
  215. 'defn',
  216. 'defn-',
  217. 'defonce',
  218. 'defprotocol',
  219. 'defrecord',
  220. 'defstruct',
  221. 'deftype',
  222. 'delay',
  223. 'delay?',
  224. 'deliver',
  225. 'denominator',
  226. 'deref',
  227. 'derive',
  228. 'descendants',
  229. 'destructure',
  230. 'disj',
  231. 'disj!',
  232. 'dissoc',
  233. 'dissoc!',
  234. 'distinct',
  235. 'distinct?',
  236. 'doall',
  237. 'dorun',
  238. 'doseq',
  239. 'dosync',
  240. 'dotimes',
  241. 'doto',
  242. 'double',
  243. 'double-array',
  244. 'double?',
  245. 'doubles',
  246. 'drop',
  247. 'drop-last',
  248. 'drop-while',
  249. 'eduction',
  250. 'empty',
  251. 'empty?',
  252. 'ensure',
  253. 'ensure-reduced',
  254. 'enumeration-seq',
  255. 'error-handler',
  256. 'error-mode',
  257. 'eval',
  258. 'even?',
  259. 'every-pred',
  260. 'every?',
  261. 'ex-data',
  262. 'ex-info',
  263. 'extend',
  264. 'extend-protocol',
  265. 'extend-type',
  266. 'extenders',
  267. 'extends?',
  268. 'false?',
  269. 'ffirst',
  270. 'file-seq',
  271. 'filter',
  272. 'filterv',
  273. 'find',
  274. 'find-keyword',
  275. 'find-ns',
  276. 'find-protocol-impl',
  277. 'find-protocol-method',
  278. 'find-var',
  279. 'first',
  280. 'flatten',
  281. 'float',
  282. 'float-array',
  283. 'float?',
  284. 'floats',
  285. 'flush',
  286. 'fn',
  287. 'fn?',
  288. 'fnext',
  289. 'fnil',
  290. 'for',
  291. 'force',
  292. 'format',
  293. 'frequencies',
  294. 'future',
  295. 'future-call',
  296. 'future-cancel',
  297. 'future-cancelled?',
  298. 'future-done?',
  299. 'future?',
  300. 'gen-class',
  301. 'gen-interface',
  302. 'gensym',
  303. 'get',
  304. 'get-in',
  305. 'get-method',
  306. 'get-proxy-class',
  307. 'get-thread-bindings',
  308. 'get-validator',
  309. 'group-by',
  310. 'halt-when',
  311. 'hash',
  312. 'hash-combine',
  313. 'hash-map',
  314. 'hash-ordered-coll',
  315. 'hash-set',
  316. 'hash-unordered-coll',
  317. 'ident?',
  318. 'identical?',
  319. 'identity',
  320. 'if-let',
  321. 'if-not',
  322. 'if-some',
  323. 'ifn?',
  324. 'import',
  325. 'in-ns',
  326. 'inc',
  327. 'inc\'',
  328. 'indexed?',
  329. 'init-proxy',
  330. 'inst-ms',
  331. 'inst-ms*',
  332. 'inst?',
  333. 'instance?',
  334. 'int',
  335. 'int-array',
  336. 'int?',
  337. 'integer?',
  338. 'interleave',
  339. 'intern',
  340. 'interpose',
  341. 'into',
  342. 'into-array',
  343. 'ints',
  344. 'io!',
  345. 'isa?',
  346. 'iterate',
  347. 'iterator-seq',
  348. 'juxt',
  349. 'keep',
  350. 'keep-indexed',
  351. 'key',
  352. 'keys',
  353. 'keyword',
  354. 'keyword?',
  355. 'last',
  356. 'lazy-cat',
  357. 'lazy-seq',
  358. 'let',
  359. 'letfn',
  360. 'line-seq',
  361. 'list',
  362. 'list*',
  363. 'list?',
  364. 'load',
  365. 'load-file',
  366. 'load-reader',
  367. 'load-string',
  368. 'loaded-libs',
  369. 'locking',
  370. 'long',
  371. 'long-array',
  372. 'longs',
  373. 'loop',
  374. 'macroexpand',
  375. 'macroexpand-1',
  376. 'make-array',
  377. 'make-hierarchy',
  378. 'map',
  379. 'map-entry?',
  380. 'map-indexed',
  381. 'map?',
  382. 'mapcat',
  383. 'mapv',
  384. 'max',
  385. 'max-key',
  386. 'memfn',
  387. 'memoize',
  388. 'merge',
  389. 'merge-with',
  390. 'meta',
  391. 'method-sig',
  392. 'methods',
  393. 'min',
  394. 'min-key',
  395. 'mix-collection-hash',
  396. 'mod',
  397. 'munge',
  398. 'name',
  399. 'namespace',
  400. 'namespace-munge',
  401. 'nat-int?',
  402. 'neg-int?',
  403. 'neg?',
  404. 'newline',
  405. 'next',
  406. 'nfirst',
  407. 'nil?',
  408. 'nnext',
  409. 'not',
  410. 'not-any?',
  411. 'not-empty',
  412. 'not-every?',
  413. 'not=',
  414. 'ns',
  415. 'ns-aliases',
  416. 'ns-imports',
  417. 'ns-interns',
  418. 'ns-map',
  419. 'ns-name',
  420. 'ns-publics',
  421. 'ns-refers',
  422. 'ns-resolve',
  423. 'ns-unalias',
  424. 'ns-unmap',
  425. 'nth',
  426. 'nthnext',
  427. 'nthrest',
  428. 'num',
  429. 'number?',
  430. 'numerator',
  431. 'object-array',
  432. 'odd?',
  433. 'or',
  434. 'parents',
  435. 'partial',
  436. 'partition',
  437. 'partition-all',
  438. 'partition-by',
  439. 'pcalls',
  440. 'peek',
  441. 'persistent!',
  442. 'pmap',
  443. 'pop',
  444. 'pop!',
  445. 'pop-thread-bindings',
  446. 'pos-int?',
  447. 'pos?',
  448. 'pr',
  449. 'pr-str',
  450. 'prefer-method',
  451. 'prefers',
  452. 'primitives-classnames',
  453. 'print',
  454. 'print-ctor',
  455. 'print-dup',
  456. 'print-method',
  457. 'print-simple',
  458. 'print-str',
  459. 'printf',
  460. 'println',
  461. 'println-str',
  462. 'prn',
  463. 'prn-str',
  464. 'promise',
  465. 'proxy',
  466. 'proxy-call-with-super',
  467. 'proxy-mappings',
  468. 'proxy-name',
  469. 'proxy-super',
  470. 'push-thread-bindings',
  471. 'pvalues',
  472. 'qualified-ident?',
  473. 'qualified-keyword?',
  474. 'qualified-symbol?',
  475. 'quot',
  476. 'rand',
  477. 'rand-int',
  478. 'rand-nth',
  479. 'random-sample',
  480. 'range',
  481. 'ratio?',
  482. 'rational?',
  483. 'rationalize',
  484. 're-find',
  485. 're-groups',
  486. 're-matcher',
  487. 're-matches',
  488. 're-pattern',
  489. 're-seq',
  490. 'read',
  491. 'read-line',
  492. 'read-string',
  493. 'reader-conditional',
  494. 'reader-conditional?',
  495. 'realized?',
  496. 'record?',
  497. 'reduce',
  498. 'reduce-kv',
  499. 'reduced',
  500. 'reduced?',
  501. 'reductions',
  502. 'ref',
  503. 'ref-history-count',
  504. 'ref-max-history',
  505. 'ref-min-history',
  506. 'ref-set',
  507. 'refer',
  508. 'refer-clojure',
  509. 'reify',
  510. 'release-pending-sends',
  511. 'rem',
  512. 'remove',
  513. 'remove-all-methods',
  514. 'remove-method',
  515. 'remove-ns',
  516. 'remove-watch',
  517. 'repeat',
  518. 'repeatedly',
  519. 'replace',
  520. 'replicate',
  521. 'require',
  522. 'reset!',
  523. 'reset-meta!',
  524. 'reset-vals!',
  525. 'resolve',
  526. 'rest',
  527. 'restart-agent',
  528. 'resultset-seq',
  529. 'reverse',
  530. 'reversible?',
  531. 'rseq',
  532. 'rsubseq',
  533. 'run!',
  534. 'satisfies?',
  535. 'second',
  536. 'select-keys',
  537. 'send',
  538. 'send-off',
  539. 'send-via',
  540. 'seq',
  541. 'seq?',
  542. 'seqable?',
  543. 'seque',
  544. 'sequence',
  545. 'sequential?',
  546. 'set',
  547. 'set-agent-send-executor!',
  548. 'set-agent-send-off-executor!',
  549. 'set-error-handler!',
  550. 'set-error-mode!',
  551. 'set-validator!',
  552. 'set?',
  553. 'short',
  554. 'short-array',
  555. 'shorts',
  556. 'shuffle',
  557. 'shutdown-agents',
  558. 'simple-ident?',
  559. 'simple-keyword?',
  560. 'simple-symbol?',
  561. 'slurp',
  562. 'some',
  563. 'some->',
  564. 'some->>',
  565. 'some-fn',
  566. 'some?',
  567. 'sort',
  568. 'sort-by',
  569. 'sorted-map',
  570. 'sorted-map-by',
  571. 'sorted-set',
  572. 'sorted-set-by',
  573. 'sorted?',
  574. 'special-symbol?',
  575. 'spit',
  576. 'split-at',
  577. 'split-with',
  578. 'str',
  579. 'string?',
  580. 'struct',
  581. 'struct-map',
  582. 'subs',
  583. 'subseq',
  584. 'subvec',
  585. 'supers',
  586. 'swap!',
  587. 'swap-vals!',
  588. 'symbol',
  589. 'symbol?',
  590. 'sync',
  591. 'tagged-literal',
  592. 'tagged-literal?',
  593. 'take',
  594. 'take-last',
  595. 'take-nth',
  596. 'take-while',
  597. 'test',
  598. 'the-ns',
  599. 'thread-bound?',
  600. 'time',
  601. 'to-array',
  602. 'to-array-2d',
  603. 'trampoline',
  604. 'transduce',
  605. 'transient',
  606. 'tree-seq',
  607. 'true?',
  608. 'type',
  609. 'unchecked-add',
  610. 'unchecked-add-int',
  611. 'unchecked-byte',
  612. 'unchecked-char',
  613. 'unchecked-dec',
  614. 'unchecked-dec-int',
  615. 'unchecked-divide-int',
  616. 'unchecked-double',
  617. 'unchecked-float',
  618. 'unchecked-inc',
  619. 'unchecked-inc-int',
  620. 'unchecked-int',
  621. 'unchecked-long',
  622. 'unchecked-multiply',
  623. 'unchecked-multiply-int',
  624. 'unchecked-negate',
  625. 'unchecked-negate-int',
  626. 'unchecked-remainder-int',
  627. 'unchecked-short',
  628. 'unchecked-subtract',
  629. 'unchecked-subtract-int',
  630. 'underive',
  631. 'unquote',
  632. 'unquote-splicing',
  633. 'unreduced',
  634. 'unsigned-bit-shift-right',
  635. 'update',
  636. 'update-in',
  637. 'update-proxy',
  638. 'uri?',
  639. 'use',
  640. 'uuid?',
  641. 'val',
  642. 'vals',
  643. 'var-get',
  644. 'var-set',
  645. 'var?',
  646. 'vary-meta',
  647. 'vec',
  648. 'vector',
  649. 'vector-of',
  650. 'vector?',
  651. 'volatile!',
  652. 'volatile?',
  653. 'vreset!',
  654. 'vswap!',
  655. 'when',
  656. 'when-first',
  657. 'when-let',
  658. 'when-not',
  659. 'when-some',
  660. 'while',
  661. 'with-bindings',
  662. 'with-bindings*',
  663. 'with-in-str',
  664. 'with-loading-context',
  665. 'with-local-vars',
  666. 'with-meta',
  667. 'with-open',
  668. 'with-out-str',
  669. 'with-precision',
  670. 'with-redefs',
  671. 'with-redefs-fn',
  672. 'xml-seq',
  673. 'zero?',
  674. 'zipmap',
  675. ];
  676. function createTestCases(specialForms: string[], type: string): ITestItem[] {
  677. const testCases = [];
  678. for (const specialForm of specialForms) {
  679. testCases.push({
  680. line: `${specialForm}`,
  681. tokens: [
  682. {startIndex: 0, type: `${type}.clj`},
  683. ],
  684. });
  685. }
  686. return testCases;
  687. }
  688. testTokenization('clojure', [
  689. // special forms
  690. createTestCases(specialForms, 'keyword'),
  691. // core symbols
  692. createTestCases(coreSymbols, 'keyword'),
  693. // atoms
  694. createTestCases(['false', 'nil', 'true'], 'constant'),
  695. // keywords
  696. createTestCases([':foo', '::bar', ':foo/bar', ':foo.bar/baz'], 'constant'),
  697. // numbers
  698. createTestCases([
  699. '42', '+42', '-421',
  700. '42N', '+42N', '-42N',
  701. '0.42', '+0.42', '-0.42',
  702. '42M', '+42M', '-42M',
  703. '42.42M', '+42.42M', '-42.42M',
  704. '1/42', '+1/42', '-1/42',
  705. '0x42af', '+0x42af', '-0x42af',
  706. '0x42AF', '+0x42AF', '-0x42AF',
  707. '1e2', '1e+2', '1e-2',
  708. '+1e2', '+1e+2', '+1e-2',
  709. '-1e2', '-1e+2', '-1e-2',
  710. '-1.0e2', '-0.1e+2', '-1.01e-2',
  711. '1E2', '1E+2', '1E-2',
  712. '+1E2', '+1E+2', '+1E-2',
  713. '-1E2', '-1E+2', '-1E-2',
  714. '-1.0E2', '-0.1E+2', '-1.01E-2',
  715. '2r101010', '+2r101010', '-2r101010',
  716. '2r101010', '+2r101010', '-2r101010',
  717. '8r52', '+8r52', '-8r52',
  718. '36rhello', '+36rhello', '-36rhello',
  719. '36rz', '+36rz', '-36rz',
  720. '36rZ', '+36rZ', '-36rZ',
  721. ], 'number'),
  722. // characters
  723. createTestCases([
  724. '\\1',
  725. '\\a',
  726. '\\#',
  727. '\\\\',
  728. '\\\"',
  729. '\\(',
  730. '\\A',
  731. '\\backspace',
  732. '\\formfeed',
  733. '\\newline',
  734. '\\space',
  735. '\\return',
  736. '\\tab',
  737. '\\o123',
  738. '\\u1000',
  739. '\\uAaAa',
  740. '\\u9F9F'
  741. ], 'string'),
  742. // strings
  743. createTestCases([
  744. '\"I\'m a little teapot.\"',
  745. '\"I\'m a \\\"little\\\" teapot.\"',
  746. '\"I\'m', // this is
  747. 'a little', // a multi-line
  748. 'teapot.\"' // string
  749. ], 'string'),
  750. // comments
  751. createTestCases([
  752. '; this is an in-line comment.',
  753. ';; this is a line comment.',
  754. ], 'comment'),
  755. // `comment`
  756. [
  757. {
  758. line: '(comment)',
  759. tokens: [
  760. {startIndex: 0, type: 'comment.clj'},
  761. ],
  762. },
  763. {
  764. line: 'foo :bar 42',
  765. tokens: [
  766. {startIndex: 0, type: 'identifier.clj'},
  767. {startIndex: 3, type: 'white.clj'},
  768. {startIndex: 4, type: 'constant.clj'},
  769. {startIndex: 8, type: 'white.clj'},
  770. {startIndex: 9, type: 'number.clj'},
  771. ],
  772. },
  773. {
  774. line: '(comment (foo [bar :baz 1 "qux"]))',
  775. tokens: [
  776. {startIndex: 0, type: 'comment.clj'},
  777. ],
  778. },
  779. {
  780. line: '(comments foo bar)',
  781. tokens: [
  782. {startIndex: 0, type: 'delimiter.parenthesis.clj'},
  783. {startIndex: 1, type: 'identifier.clj'},
  784. {startIndex: 9, type: 'white.clj'},
  785. {startIndex: 10, type: 'identifier.clj'},
  786. {startIndex: 13, type: 'white.clj'},
  787. {startIndex: 14, type: 'identifier.clj'},
  788. {startIndex: 17, type: 'delimiter.parenthesis.clj'},
  789. ]
  790. },
  791. {
  792. line: '(comment6 foo bar)',
  793. tokens: [
  794. {startIndex: 0, type: 'delimiter.parenthesis.clj'},
  795. {startIndex: 1, type: 'identifier.clj'},
  796. {startIndex: 9, type: 'white.clj'},
  797. {startIndex: 10, type: 'identifier.clj'},
  798. {startIndex: 13, type: 'white.clj'},
  799. {startIndex: 14, type: 'identifier.clj'},
  800. {startIndex: 17, type: 'delimiter.parenthesis.clj'},
  801. ]
  802. },
  803. {
  804. line: '(comment foo',
  805. tokens: [
  806. {startIndex: 0, type: 'comment.clj'},
  807. ],
  808. },
  809. {
  810. line: 'foo',
  811. tokens: [
  812. {startIndex: 0, type: 'comment.clj'},
  813. ],
  814. },
  815. ],
  816. // reader macro characters
  817. createTestCases([
  818. '#',
  819. '@',
  820. '^',
  821. '`',
  822. '~',
  823. "'",
  824. ], 'meta')
  825. ]);