File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { expect , test } from "vitest" ;
2
2
3
3
import consonantChartsPath from "@/assets/data/ipa-chart/ipachart-consonants.tsv" ;
4
+ import parseFile from "@/utils/dataTransformer" ;
4
5
5
6
import ComplexSymbol from "./ComplexSymbol" ;
6
7
import { diacriticList } from "./Diacritics" ;
7
8
import IPASkeleton from "./IPASkeleton" ;
8
- import symbolList from "./SymbolList.test" ;
9
- import parseFile from "@/utils/dataTransformer" ;
10
9
11
- const consonantsChart = parseFile < Record < string , string > > ( consonantChartsPath , true ) ;
10
+ import symbolList from "./SymbolList.test" ;
12
11
13
- // unwrap headers provided by dataTransformer
14
- const rawConsonants = [ Array . from ( Object . keys ( consonantsChart [ 0 ] ) ) ] . concat (
15
- consonantsChart . map ( Object . values )
16
- ) ;
17
- const skeleton = new IPASkeleton ( rawConsonants , symbolList ) ;
12
+ const consonantsChart = parseFile < string [ ] > ( consonantChartsPath , false ) ;
13
+ const skeleton = new IPASkeleton ( consonantsChart , symbolList ) ;
18
14
19
15
test ( "finds reasonable base candidate: aspirated backed velar plosive" , async ( ) => {
20
16
const symbol = ComplexSymbol . fromBaseSymbol ( symbolList . symbols [ "k" ] , [
You can’t perform that action at this time.
0 commit comments