From ce0dbb1f181e6658f45a66932108294733551d60 Mon Sep 17 00:00:00 2001 From: adueck Date: Tue, 22 Aug 2023 23:22:40 +0400 Subject: [PATCH] fixed test issue --- netlify.toml | 2 +- src/lib/src/parsing/irreg-verbs.ts | 106 ++--------------------------- src/lib/src/parsing/parse-vp.ts | 2 + 3 files changed, 8 insertions(+), 102 deletions(-) diff --git a/netlify.toml b/netlify.toml index d7071c8..5abb66e 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] - command = "yarn install-r && yarn build-website" + command = "yarn install-r && yarn test --silent && yarn build-website" publish = "build/" diff --git a/src/lib/src/parsing/irreg-verbs.ts b/src/lib/src/parsing/irreg-verbs.ts index 3cf10ef..6bd8bfd 100644 --- a/src/lib/src/parsing/irreg-verbs.ts +++ b/src/lib/src/parsing/irreg-verbs.ts @@ -1,109 +1,13 @@ import * as T from "../../../types"; +import { wordQuery } from "./lookup"; -export const raatlul = { - entry: { - ts: 1527815216, - i: 6926, - p: "راتلل", - f: "raatlúl", - g: "raatlul", - e: "to come", - r: 4, - c: "v. intrans.", - psp: "راځ", - psf: "raadz", - ssp: "راش", - ssf: "ráash", - prp: "راغلل", - prf: "ráaghlul", - pprtp: "راغلی", - pprtf: "raaghúlay", - tppp: "راغی", - tppf: "ráaghay", - noOo: true, - separationAtP: 2, - separationAtF: 3, - ec: "come,comes,coming,came,come", - }, -} as T.VerbEntry; +export const raatlul = wordQuery("راتلل", "verb"); -export const tlul = { - entry: { - ts: 1527815348, - i: 3820, - p: "تلل", - f: "tlul", - g: "tlul", - e: "to go", - r: 4, - c: "v. intrans.", - psp: "ځ", - psf: "dz", - ssp: "لاړ ش", - ssf: "láaR sh", - prp: "لاړل", - prf: "láaRul", - tppp: "لاړ", - tppf: "laaR", - separationAtP: 2, - separationAtF: 3, - ec: "go,goes,going,went,gone", - }, -} as T.VerbEntry; +export const tlul = wordQuery("tlul", "verb"); -export const wartlul = { - entry: { - ts: 1585228579997, - i: 14924, - p: "ورتلل", - f: "wărtlul", - g: "wartlul", - e: "to come / go over to (third person or place)", - r: 4, - c: "v. intrans.", - psp: "ورځ", - psf: "wărdz", - ssp: "ورش", - ssf: "wársh", - prp: "ورغلل", - prf: "wárghlul", - pprtp: "ورغلی", - pprtf: "wărghúlay", - tppp: "ورغی", - tppf: "wărghay", - noOo: true, - separationAtP: 2, - separationAtF: 3, - ec: "come,comes,coming,came,come", - }, -} as T.VerbEntry; +export const wartlul = wordQuery("ورتلل", "verb"); -export const dartlul = { - entry: { - ts: 1585228551150, - i: 6320, - p: "درتلل", - f: "dărtlul", - g: "dartlul", - e: "to come (to you / second person)", - r: 3, - c: "v. intrans.", - psp: "درځ", - psf: "dărdz", - ssp: "درش", - ssf: "dársh", - prp: "درغلل", - prf: "dárghlul", - pprtp: "درغلی", - pprtf: "dărghúlay", - tppp: "درغی", - tppf: "dărghay", - noOo: true, - separationAtP: 2, - separationAtF: 3, - ec: "come,comes,coming,came,come", - }, -} as T.VerbEntry; +export const dartlul = wordQuery("درتلل", "verb") as T.VerbEntry; export const kedulStat = { entry: { diff --git a/src/lib/src/parsing/parse-vp.ts b/src/lib/src/parsing/parse-vp.ts index abb90b4..7d4ef56 100644 --- a/src/lib/src/parsing/parse-vp.ts +++ b/src/lib/src/parsing/parse-vp.ts @@ -21,6 +21,8 @@ import { isFirstOrSecondPersPronoun } from "../phrase-building/render-vp"; // وامې نه اخیست // waa-me nú akheest +// TODO: WHY IS NETLIFY TESTING FAILING - getting a different version of tlul + // map over transitivities, to give transitive / gramm. transitive optionns // TODO: learn how to yank / use plugin for JSON neovim