1 ! Copyright (C) 2008 Chris Double.
2 ! See http://factorcode.org/license.txt for BSD license.
4 USING: kernel tools.test peg peg.javascript.ast peg.javascript.tokenizer accessors ;
5 IN: peg.javascript.tokenizer.tests
7 \ tokenize-javascript must-infer
13 T{ ast-string f "hello" }
22 "123; 'hello'; foo(x);" tokenize-javascript
25 { V{ T{ ast-regexp f "<(w+)[^>]*?)/>" "g" } } } [
26 "/<(\\w+)[^>]*?)\\/>/g" tokenize-javascript