11// this code is Deno only
22
33import { assertEquals } from "@std/assert/equals" ;
4- import { assertLess } from "@std/assert/less" ;
54import { assertNotEquals } from "@std/assert/not-equals" ;
65import { assertThrows } from "@std/assert/throws" ;
76import { parser } from "./parser.ts" ;
@@ -15,7 +14,6 @@ import {
1514 matchString ,
1615 sequence ,
1716} from "./parser_lib.ts" ;
18- import { KU_LILI_WORDS , KU_SULI_WORDS , PU_WORDS } from "./ucsur.ts" ;
1917
2018Deno . test ( "AST all distinct" , ( ) => {
2119 // examples gathered from https://github.com/kilipan/nasin-toki
@@ -238,24 +236,6 @@ Deno.test("parser all error", () => {
238236 assertThrows ( ( ) => parser . parse ( sentence ) . collect ( ) ) ;
239237 }
240238} ) ;
241- Deno . test ( "ucsur have proper length" , ( ) => {
242- assertEquals ( PU_WORDS . length , 120 ) ;
243- assertEquals ( KU_SULI_WORDS . length , 17 ) ;
244- assertEquals ( KU_LILI_WORDS . length , 4 ) ;
245- } ) ;
246- Deno . test ( "ucsur ordered" , ( ) => {
247- for ( const [ i , word ] of PU_WORDS . entries ( ) ) {
248- if ( i < PU_WORDS . length - 1 ) {
249- const other = PU_WORDS [ i + 1 ] ;
250- assertLess ( word , PU_WORDS [ i + 1 ] , `error between ${ word } and ${ other } ` ) ;
251- }
252- }
253- } ) ;
254- Deno . test ( "no ali" , ( ) => {
255- for ( const word of PU_WORDS ) {
256- assertNotEquals ( word , "ali" ) ;
257- }
258- } ) ;
259239Deno . test ( "small parser" , ( ) => {
260240 const space = match ( / \s * / , "space" ) ;
261241 const parser = sequence (
0 commit comments