summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-09-05 20:22:38 +0200
committerSébastien Dailly <sebastien@chimrod.com>2021-09-05 20:22:38 +0200
commita4ec992ad24a5f62e8795f608b3d7943db0d8c1a (patch)
tree3355258a2c242be5d1322ef02a239cfd72b5713a
parent6a34154b77ac80f89df816ba0062f382d915fb22 (diff)
Updated tests
-rw-r--r--src/lib/parser.mly7
-rw-r--r--src/test/test.ml7
2 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/parser.mly b/src/lib/parser.mly
index 8fe4a55..925ce9f 100644
--- a/src/lib/parser.mly
+++ b/src/lib/parser.mly
@@ -94,14 +94,11 @@ voyels_semi:
| voyels { $1 }
| W A { Sounds.diphtongue Sounds.semi_voyel_w Sounds.a}
| W I { Sounds.diphtongue Sounds.semi_voyel_w Sounds.i}
- | I E { Sounds.diphtongue Sounds.i (Sounds.e `Opened) }
+ | I voyels { Sounds.diphtongue Sounds.semi_voyel_y $2 }
ending_consonant:
| Nothing { Some (Sounds.none) }
- | B { Some (Sounds.b ) }
- | T { Some (Sounds.t )}
- | K { Some (Sounds.k)}
- | G { Some (Sounds.g)}
+ | occlusiv { Some $1 }
| liquid { Some $1 }
| nasal { Some $1 }
diff --git a/src/test/test.ml b/src/test/test.ml
index 060e829..9ae698a 100644
--- a/src/test/test.ml
+++ b/src/test/test.ml
@@ -59,7 +59,7 @@ let tests =
; "anneaux", "ano(s)"
; "arachide", "aRaSid°"
; "as", "a(s)"
- ; "asia", "azia"
+ ; "asia", "az[ja]"
; "astiqué", "astike"
; "atmosphère", "atmosfER°"
; "automne", "ot§n°"
@@ -76,7 +76,7 @@ let tests =
; "co|incidant", "ko5sid@(t)"
; "croire", "kR[wa]R°"
; "demeure", "d2m9R°"
- ; "diag|nostic", "diagnostik"
+ ; "diag|nostic", "d[ja]gnostik"
; "ébrouas", "ebRua(s)"
; "effroi", "EfR[wa]"
; "em|magasinais","@magazinE(s)"
@@ -87,12 +87,14 @@ let tests =
; "final", "finaL"
; "loin", "L[w5]"
; "groin", "gR[w5]"
+ ; "hélicoptère", "eLikoptER°"
; "hirondelle", "iR§dEL°"
; "joues", "Zu°(s)"
; "libellule", "LibELyL°"
; "main", "m5"
; "merci", "mERsi"
; "ménageais", "menaZE(s)"
+ ; "mouillage", "mujaZ°"
; "neige", "nEZ°"
; "neuf", "n9f"
; "nerf", "nE(R)"
@@ -107,6 +109,7 @@ let tests =
; "souris", "suRi(s)"
; "toiture", "t[wa]tyR°"
; "trois", "tR[wa](s)"
+ ; "vieux", "v[j9](s)"
; "vil|le", "viLL°"
; "wèb", "wEb"
]