Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agricolamz committed Jul 3, 2024
1 parent 1c06746 commit b382dc4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 191 deletions.
15 changes: 14 additions & 1 deletion code/test_and_write_logs.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@ file.remove("test_logs.txt")
testthat::test_dir("tests", stop_on_failure = FALSE)
suppressPackageStartupMessages(library(tidyverse))
test_logs <- read_lines("test_logs.txt")
test_logs[str_detect(test_logs, "(everything is ok)|(0 wrong hashes)|[ːʔʢʡʕʜħɬłčβɟɡǧɥχɣλƛüıɨəʁžšşșǝʲæäğА-я]", negate = TRUE)] |>
read_tsv("data/tald_villages.csv") |>
select(dialect_toplevel, dialect_nt1, dialect_nt2, dialect_nt3, village_dialect) |>
pivot_longer(names_to = "col", values_to = "value", everything()) |>
na.omit() |>
distinct(value) |>
pull(value) |>
str_c(collapse = ")|(") ->
langs_and_dialects

langs_and_dialects <- str_c("(", langs_and_dialects, ")", collapse = "")

str_subset(test_logs, "(everything is ok)|(0 wrong hashes)|[ːʔʢʡʕʜħɬłčβɟɡǧɥχɣλƛüıɨəʁžšşșǝʲæäğА-я]", negate = TRUE) |>
str_subset("spelling of .{2,3} ", negate = TRUE) |>
str_subset(str_glue("spelling of {langs_and_dialects} "), negate = TRUE) |>
write_lines("test_logs.txt", append = FALSE)
read_lines("test_logs.txt") %>% cat(sep = "\n")
system("git add -u")
190 changes: 0 additions & 190 deletions test_logs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,297 +94,107 @@ The obligatory column date is absent in the file fare
The wrong village dialect name Drushtul in the file erg_abs_pronouns.tsv
NA
The wrong village dialect name Inkhokvari in the file numeral_bases.tsv
The wrong village dialect name Ashar Kurakh in the file numeral_bases.tsv
The wrong village dialect name Gelkhen in the file numeral_bases.tsv
The wrong village dialect name Maza in the file numeral_bases.tsv
The wrong village dialect name Karakyuri in the file numeral_bases.tsv
The wrong village dialect name Gogaz in the file numeral_bases.tsv
The wrong village dialect name Kimil Quba in the file numeral_bases.tsv
The wrong village dialect name Akka in the file numeral_bases.tsv
The wrong non-toplevel 1 dialect name Siukh in the file numeral_bases.tsv
The wrong toplevel dialect name Ak-Nogai in the file caritive_attr.tsv
The wrong toplevel dialect name Kara-Nogai in the file caritive_attr.tsv
The wrong toplevel dialect name Central in the file gender_agreement_slot.tsv
The wrong toplevel dialect name Kara-Nogai in the file gender_agreement_slot.tsv
The wrong toplevel dialect name Eastern Armenian in the file jussive.tsv
The wrong toplevel dialect name Kara-Nogai in the file number_of_morphological_slots_in_spatial_forms.tsv
The wrong toplevel dialect name Mukhad in the file numeral_bases.tsv
The wrong toplevel dialect name Shinaz in the file numeral_bases.tsv
The wrong toplevel dialect name Myukhrek in the file numeral_bases.tsv
The wrong toplevel dialect name Ikhrek in the file numeral_bases.tsv
The wrong toplevel dialect name Luchek in the file numeral_bases.tsv
The wrong toplevel dialect name Borch-Khnov in the file numeral_bases.tsv
The wrong toplevel dialect name Ak-Nogai in the file numeral_ordinals.tsv
The wrong toplevel dialect name Central in the file trans_intrans_imperative.tsv
The wrong toplevel dialect name Nothern Akhvakh in the file trans_intrans_imperative.tsv
spelling of chuhwanahw in adpositions.Rmd:238
spelling of depi in adpositions.Rmd:383
spelling of handep in adpositions.Rmd:56
spelling of nd in adpositions.Rmd:192,382
spelling of Iwaidja in agreement_of_adpositions.Rmd:87,89
spelling of Iwaidjan in agreement_of_adpositions.Rmd:87
spelling of Nyungan in agreement_of_adpositions.Rmd:87
spelling of ar in caritive_adv.Rmd:70,94
spelling of gu in caritive_adv.Rmd:52,52,52
spelling of za in caritive_adv.Rmd:41
spelling of zan in caritive_adv.Rmd:41
spelling of ar in caritive_attr.Rmd:70,94
spelling of gu in caritive_attr.Rmd:52,52,52
spelling of za in caritive_attr.Rmd:41
spelling of zan in caritive_attr.Rmd:41
spelling of al in causatives.Rmd:187,327,328,359
spelling of aq in causatives.Rmd:126,128,151,152,153,154,155,342,345
spelling of aqij in causatives.Rmd:191
spelling of ar in causatives.Rmd:185,354
spelling of aric in causatives.Rmd:333
spelling of arq in causatives.Rmd:344
spelling of dar in causatives.Rmd:121
spelling of de in causatives.Rmd:358
spelling of dir in causatives.Rmd:122
spelling of doren in causatives.Rmd:357
spelling of ger in causatives.Rmd:121
spelling of gil in causatives.Rmd:187,327
spelling of giz in causatives.Rmd:121
spelling of gol in causatives.Rmd:187,327
spelling of gul in causatives.Rmd:187,327
spelling of ib in causatives.Rmd:128
spelling of ij in causatives.Rmd:153,345
spelling of ik in causatives.Rmd:247
spelling of iq in causatives.Rmd:153,345
spelling of iqij in causatives.Rmd:191
spelling of ir in causatives.Rmd:247
spelling of irq in causatives.Rmd:128,344
spelling of ize in causatives.Rmd:355
spelling of kar in causatives.Rmd:123
spelling of ker in causatives.Rmd:123
spelling of ub in causatives.Rmd:339
spelling of uk in causatives.Rmd:247
spelling of un in causatives.Rmd:335
spelling of vuyic in causatives.Rmd:334
spelling of wordform in causatives.Rmd:14
spelling of wy in causatives.Rmd:336
spelling of dada in comitative.Rmd:27
spelling of di in comitative.Rmd:68,68
spelling of galaz in comitative.Rmd:114
spelling of qaj in comitative.Rmd:27,27
spelling of voz in comitative.Rmd:105
spelling of iq in days_after_today.Rmd:24
spelling of iqna in days_after_today.Rmd:24
spelling of nid in days_after_today.Rmd:17
spelling of qa in days_after_today.Rmd:19
spelling of iq in days_before_today.Rmd:34
spelling of iqna in days_before_today.Rmd:34
spelling of nid in days_before_today.Rmd:27
spelling of qa in days_before_today.Rmd:29
spelling of ada in demonstratives.Rmd:143
spelling of Akvakh in demonstratives.Rmd:315
spelling of awedu in demonstratives.Rmd:326
spelling of Chimakuan in demonstratives.Rmd:102
spelling of di in demonstratives.Rmd:79
spelling of dwaara in demonstratives.Rmd:28
spelling of ga in demonstratives.Rmd:100,321,321,321
spelling of ge in demonstratives.Rmd:175
spelling of godo in demonstratives.Rmd:137
spelling of hada in demonstratives.Rmd:93
spelling of hara in demonstratives.Rmd:223,223
spelling of hdi in demonstratives.Rmd:198
spelling of hgi in demonstratives.Rmd:198
spelling of hiba in demonstratives.Rmd:236,236
spelling of hli in demonstratives.Rmd:198
spelling of hobodu in demonstratives.Rmd:326,326
spelling of homonu in demonstratives.Rmd:326,326
spelling of hu in demonstratives.Rmd:93,100
spelling of hudi in demonstratives.Rmd:197
spelling of hudo in demonstratives.Rmd:93
spelling of hugi in demonstratives.Rmd:197
spelling of huli in demonstratives.Rmd:197
spelling of hundo in demonstratives.Rmd:79
spelling of idu in demonstratives.Rmd:256
spelling of inu in demonstratives.Rmd:256,256
spelling of iza in demonstratives.Rmd:223,223,237,237
spelling of ja in demonstratives.Rmd:137,143,143
spelling of jamu in demonstratives.Rmd:137
spelling of je in demonstratives.Rmd:28
spelling of ka in demonstratives.Rmd:20,53
spelling of le in demonstratives.Rmd:155,157,164,175
spelling of Maricopa in demonstratives.Rmd:102
spelling of nd in demonstratives.Rmd:236,315
spelling of ni in demonstratives.Rmd:79
spelling of oda in demonstratives.Rmd:143
spelling of owenu in demonstratives.Rmd:326
spelling of Supyire in demonstratives.Rmd:20
spelling of uhu in demonstratives.Rmd:86
spelling of un in demonstratives.Rmd:211
spelling of wa in demonstratives.Rmd:189,198,198,198
spelling of yz in demonstratives.Rmd:28,223
spelling of Anchiq in erg_abs_pronouns.Rmd:235
spelling of de in erg_abs_pronouns.Rmd:9,9
spelling of di in erg_abs_pronouns.Rmd:88
spelling of du in erg_abs_pronouns.Rmd:140
spelling of Duakar in erg_abs_pronouns.Rmd:235,295
spelling of duha in erg_abs_pronouns.Rmd:140
spelling of eli in erg_abs_pronouns.Rmd:9
spelling of Gakvari in erg_abs_pronouns.Rmd:231
spelling of Huppuq in erg_abs_pronouns.Rmd:293
spelling of je in erg_abs_pronouns.Rmd:285
spelling of Maxmudova in erg_abs_pronouns.Rmd:285
spelling of Richa in erg_abs_pronouns.Rmd:293
spelling of SG in erg_abs_pronouns.Rmd:9,88,134,140,146,148,191,285
spelling of va in erg_abs_pronouns.Rmd:191
spelling of waj in erg_abs_pronouns.Rmd:239
spelling of za in erg_abs_pronouns.Rmd:134
spelling of bol in evidentiality_tense.Rmd:89
spelling of NAF in evidentiality_tense.Rmd:76,78,87
spelling of wo in evidentiality_tense.Rmd:76,87
spelling of xil in evidentiality_tense.Rmd:66
spelling of cline in evidentiality.Rmd:66
spelling of Abdullaev in farewell_wishes.Rmd:132
spelling of Aghul in farewell_wishes.Rmd:116,130
spelling of Ando in farewell_wishes.Rmd:103,153,157
spelling of Bon in farewell_wishes.Rmd:3
spelling of Bulbul in farewell_wishes.Rmd:107
spelling of Dzhaliev in farewell_wishes.Rmd:71
spelling of Fazir in farewell_wishes.Rmd:71
spelling of JUSS in farewell_wishes.Rmd:130
spelling of Khalilov in farewell_wishes.Rmd:7
spelling of Kufa in farewell_wishes.Rmd:30,37,44
spelling of lu in farewell_wishes.Rmd:130
spelling of Mazhid in farewell_wishes.Rmd:7
spelling of Merdanova in farewell_wishes.Rmd:116
spelling of ol in farewell_wishes.Rmd:130
spelling of Solmaz in farewell_wishes.Rmd:116
spelling of yol in farewell_wishes.Rmd:130
spelling of Abdullaev in gender_agreement_slot.Rmd:205
spelling of adal in gender_agreement_slot.Rmd:105
spelling of aj in gender_agreement_slot.Rmd:148
spelling of Chadakolob in gender_agreement_slot.Rmd:189
spelling of gi in gender_agreement_slot.Rmd:116
spelling of Gid in gender_agreement_slot.Rmd:83
spelling of gundine in gender_agreement_slot.Rmd:83
spelling of gundinu in gender_agreement_slot.Rmd:83,83
spelling of Keger in gender_agreement_slot.Rmd:85,101
spelling of Kumukh in gender_agreement_slot.Rmd:157
spelling of Kwarandzey in gender_agreement_slot.Rmd:17
spelling of Lavukaleve in gender_agreement_slot.Rmd:17
spelling of li in gender_agreement_slot.Rmd:105,105,205
spelling of Magomedbekova in gender_agreement_slot.Rmd:116
spelling of maj in gender_agreement_slot.Rmd:148
spelling of Marind in gender_agreement_slot.Rmd:17
spelling of Mikailov in gender_agreement_slot.Rmd:42,85,107,189
spelling of naj in gender_agreement_slot.Rmd:148
spelling of ni in gender_agreement_slot.Rmd:51
spelling of Obokh in gender_agreement_slot.Rmd:85
spelling of Rugudzha in gender_agreement_slot.Rmd:107,109
spelling of Trimorphemic in gender_agreement_slot.Rmd:38
spelling of Zhirkov in gender_agreement_slot.Rmd:148,157
spelling of Dragwa in jussive.Rmd:193
spelling of Gadzhiaxmedov in jussive.Rmd:37,44
spelling of nd in jussive.Rmd:51
spelling of Zarina in jussive.Rmd:172
spelling of al in morning_greetings.Rmd:20
spelling of ize in morning_greetings.Rmd:20
spelling of Nkore in morning_greetings.Rmd:8
spelling of Oraire in morning_greetings.Rmd:8
spelling of xair in morning_greetings.Rmd:41,41,49
spelling of xajir in morning_greetings.Rmd:41
spelling of comon in nasalization.Rmd:5
spelling of hovewer in nasalization.Rmd:5
spelling of bek in number_of_morphological_slots_in_spatial_forms.Rmd:162
spelling of cooccur in number_of_morphological_slots_in_spatial_forms.Rmd:169
spelling of di in number_of_morphological_slots_in_spatial_forms.Rmd:166
spelling of labelled in number_of_morphological_slots_in_spatial_forms.Rmd:115
spelling of maj in number_of_morphological_slots_in_spatial_forms.Rmd:165
spelling of morphophonologically in number_of_morphological_slots_in_spatial_forms.Rmd:133
spelling of Trimorphemic in number_of_morphological_slots_in_spatial_forms.Rmd:109
spelling of Urakhi in number_of_morphological_slots_in_spatial_forms.Rmd:140
spelling of wā in number_of_morphological_slots_in_spatial_forms.Rmd:163
spelling of Alik in numeral_bases.Rmd:110
spelling of Gakvari in numeral_bases.Rmd:51
spelling of Inkhokvari in numeral_bases.Rmd:133
spelling of Kondik in numeral_bases.Rmd:137
spelling of Qidi in numeral_bases.Rmd:133
spelling of quinary in numeral_bases.Rmd:10
spelling of al in numeral_class.Rmd:7
spelling of al in numeral_complex.Rmd:65,65
spelling of azir in numeral_complex.Rmd:65,65
spelling of gu in numeral_complex.Rmd:65
spelling of da in numeral_crowns_endings.Rmd:6
spelling of le in numeral_crowns_endings.Rmd:22
spelling of li in numeral_crowns_endings.Rmd:22
spelling of Alik in numeral_hundred.Rmd:24
spelling of Ando in numeral_morphology.Rmd:94
spelling of da in numeral_morphology.Rmd:92
spelling of gu in numeral_morphology.Rmd:92
spelling of al in numeral_origin.Rmd:84,84
spelling of da in numeral_origin.Rmd:53,53,99
spelling of gu in numeral_origin.Rmd:99
spelling of ida in numeral_origin.Rmd:53
spelling of le in numeral_origin.Rmd:64
spelling of na in numeral_origin.Rmd:74,74
spelling of ra in numeral_origin.Rmd:74
spelling of nV in numeral_root_hundred.Rmd:6
spelling of Huppuq in ordinals.Rmd:19,26
spelling of nominalized in ordinals.Rmd:35
spelling of Yine in ordinals.Rmd:35
spelling of Alik in particles.Rmd:85
spelling of pharyngealized in pharyngealization_map.Rmd:58
spelling of pharyngealized in pharyngealization.Rmd:5
spelling of ai in phonology.Rmd:196
spelling of aj in phonology.Rmd:196
spelling of Akvakh in phonology.Rmd:143
spelling of eu in phonology.Rmd:196
spelling of ew in phonology.Rmd:196
spelling of excludEA in phonology.Rmd:92,94
spelling of ia in phonology.Rmd:196
spelling of ja in phonology.Rmd:196
spelling of ue in phonology.Rmd:196
spelling of Anchiq in plural_marking_on_imperatives.Rmd:123
spelling of ja in plural_marking_on_imperatives.Rmd:184
spelling of nd in plural_marking_on_imperatives.Rmd:186
spelling of mV in prohibitives_map.Rmd:314
spelling of aj in prohibitives.Rmd:47,47,47,123
spelling of al in prohibitives.Rmd:150,222
spelling of ara in prohibitives.Rmd:31
spelling of ari in prohibitives.Rmd:31
spelling of Bancel in prohibitives.Rmd:150,222
spelling of der in prohibitives.Rmd:10,14
spelling of giz in prohibitives.Rmd:125
spelling of kuj in prohibitives.Rmd:101
spelling of kun in prohibitives.Rmd:101
spelling of Lejeune in prohibitives.Rmd:10,14
spelling of manzu in prohibitives.Rmd:77
spelling of mV in prohibitives.Rmd:31,47,47,93,150,150,150,150,150,222
spelling of Sg in prohibitives.Rmd:101
spelling of vay in prohibitives.Rmd:77
spelling of aj in standard_of_comparison.Rmd:55,60,147,157
spelling of aloc in standard_of_comparison.Rmd:123
spelling of ar in standard_of_comparison.Rmd:54
spelling of aveli in standard_of_comparison.Rmd:227
spelling of da in standard_of_comparison.Rmd:45,140
spelling of dan in standard_of_comparison.Rmd:72,74
spelling of de in standard_of_comparison.Rmd:227
spelling of diye in standard_of_comparison.Rmd:227
spelling of ez in standard_of_comparison.Rmd:84
spelling of ic in standard_of_comparison.Rmd:75
spelling of ja in standard_of_comparison.Rmd:62,63,153,154,233
spelling of ka in standard_of_comparison.Rmd:62,153
spelling of ku in standard_of_comparison.Rmd:48,169
spelling of le in standard_of_comparison.Rmd:233
spelling of li in standard_of_comparison.Rmd:61,150
spelling of une in standard_of_comparison.Rmd:46,141
spelling of upro in standard_of_comparison.Rmd:227
spelling of wor in standard_of_comparison.Rmd:200,216
spelling of zi in standard_of_comparison.Rmd:59,146
spelling of aja in trans_intrans_imperative.Rmd:111,113
spelling of Ando in trans_intrans_imperative.Rmd:137,138
spelling of Archib in trans_intrans_imperative.Rmd:94
spelling of ba in trans_intrans_imperative.Rmd:57,94
spelling of Gakvari in trans_intrans_imperative.Rmd:98
spelling of ij in trans_intrans_imperative.Rmd:71,71
spelling of imd in trans_intrans_imperative.Rmd:71
spelling of mari in trans_intrans_imperative.Rmd:23
spelling of oci in trans_intrans_imperative.Rmd:94
spelling of uc in trans_intrans_imperative.Rmd:113,113
spelling of ul in trans_intrans_imperative.Rmd:96
spelling of una in trans_intrans_imperative.Rmd:98
spelling of uq in trans_intrans_imperative.Rmd:80

0 comments on commit b382dc4

Please sign in to comment.