2021-07-04 09:55:26 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2021 lingdocs.com
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {
|
|
|
|
parseEc,
|
|
|
|
} from "./misc-helpers";
|
|
|
|
|
|
|
|
test("parseEc should work", () => {
|
|
|
|
expect(parseEc("walk")).toEqual(["walk", "walks", "walking", "walked", "walked"]);
|
|
|
|
expect(parseEc("scare")).toEqual(["scare", "scares", "scaring", "scared", "scared"]);
|
2021-07-05 15:32:44 +00:00
|
|
|
expect(parseEc("study")).toEqual(["study","studies","studying","studied","studied"]);
|
2021-07-04 09:55:26 +00:00
|
|
|
expect(parseEc("sew,sews,sewing,sewed,sown")).toEqual(["sew", "sews", "sewing", "sewed", "sown"]);
|
|
|
|
expect(parseEc(" sew, sews,sewing ,sewed, sown")).toEqual(["sew", "sews", "sewing", "sewed", "sown"]);
|
|
|
|
});
|